Before focusing on the playbooks, let us describe our Ansible setup, which will allow us to understand how the local_action module works. In our example setup, we have an Ubuntu 20.04 server that has Ansible installed. This will serve as the Ansible control node. Next, we have three remot...
Ansible Version $ansible --versionansible [core 2.17.3]config file = /etc/ansible/ansible.cfgconfigured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']ansible python module location = /tmp/repro/.venv/lib/python3.10/site-packages/ansibleansib...
in my production ansible playbooks, I currently have two different roles that both use a custom module from my toplevellibrarydirectory. Right now ansible-lint is giving me this error ononeof the roles but not the other - I've been pulling my hair out a bit on this since it's the sa...
In an Ansible playbook, when local_action is used, Ansible will run the module work mentioned under it on the controller node. Mostly modules used with local_action are shell and command. As you can do almost all the tasks using these modules on the controller node. --- # ... tasks: ...
ansible 1.9.2(This should maybe be in ansible/extra-modules ?)I have a role (to deploy new VM's), that after installation will probe the ssh-fingerprints of the newly build VM's, and try to add these to the running user's know_hosts file using the known_hosts module and local_...
ansible-lint fails to find the local module as it does not search in local folders, contrary to ansible-playbook See#372 (comment)for this as well $ ansible-lint -vvvv DEBUG Logging initialized to level 10 DEBUG Options: Namespace(colored=True, config_file=None, display_relative_path=True,...