Hello all,
I am running an Ansible Control Node on an ALMA Linux 8.6 (RHEL variant), and have setup four Ansible Managed Nodes also running ALMA Linux 8.6.
The implementation of Ansible is via an RPM from the ALMA Linux repositories; specifically the ansible-core-2.12.2-4.el8_6.x86_64.
I added my hosts to two ini-sections inside the RPM-provided /etc/ansible/hosts file.
[webservers]
a8-ansi-w001
a8-ansi-w002
[databases]
a8-ansi-d001
a8-ansi-d002
I have distributed the SSH RSA key to all of the managed nodes from the control node, from an account that I created on both types of nodes (control and managed). The account name I created was called “admin”.
I have never written an ansible playbook successfully because I never got started, and started this all months ago, and decided to start from scratch with the latest in changes of OS and Ansible as a whole.
Anyway, The Problem, is that I executed the following command as admin on the Control Node
ansible -m ping a8-ansi-w001
And I do not see a successful response. I see the following instead:
Awesome, thanks! I will address getting Python installed on the target system, or into the PATH variable.
I addressed the setting **remote_user=**admin because that’s the user account I built for the expressed purpose of Ansible interaction. For context I used a copy of ansible.cfg.completed_disabled and unhashed the line. The file was created based on what you see below. I did not have to do anything about the Python and PATH.
Andrew,
I had generated 4 different ansbile.cfg files in a subdirectory to keep them “out of the way”
ansible-config init -t all > ansible.cfg.complete_enabled
ansible-config init --disabled -t all > ansible.cfg.complete_disabled
There is no man page for ansible-config that explains the switch options “–disabled” or “-t all.” At least not from the RPMs from ALMA Linux. Is it anywhere else?
I executed the command: ansible -m ping a8-ansi-w001 without issue; however, I do get a Warning too.
Andrew, I truly appreciate your patience with me as I am learning quite a lot from you today.
I am aware of the order of search in which to find the ansible.cfg (and variables), so I believe I am good there.
Thank you for the Ansible Docs page about ansible-config specifically, I never saw that, probably because the documentation is so voluminous.
As for addressing the warning, I am still a little confused. I looked at the link you provided for the Debian Secret Sauce as it were.
Is the warning because Ansible is not finding a “/usr/bin/Python3.6” specifically, as opposed to the “/bin/Python3.6”? Is that the problem I am dealing with?
I set action_warnings=False in my ansible.cfg (the one I mentioned previously in this thread), so now I get this instead when I execute “ansible -m ping a8-ansi-w001”: