geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 861 forks source link

Replace ansible.builtin.command with command module #528

Closed sanjeetsagar closed 9 months ago

sanjeetsagar commented 1 year ago

The ansible.builtin.command module was removed in Ansible 2.9.6. This PR replaces the use of ansible.builtin.command with the command module

The command module is a more generic module that can be used to execute any command on a remote machine. It has a number of additional features that were not available in the ansible.builtin.command module.

github-actions[bot] commented 9 months ago

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

SuperQ commented 9 months ago

Your Ansible is broken, ansible.builtin.command is very much a thing.

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html

geerlingguy commented 9 months ago

Yes; you just need to make sure you're running a newer version of Ansible and this will work correctly.