Answer the question
In order to leave comments, you need to log in
Why can't ansible see the hosts?
Tell me please.
Faced the following problem.
Freshly rolled ansible (the hosts file has been moved to another directory (the original is still there in /etc/), registered all the addresses). An ssh-key has been generated and distributed to all managed hosts. On ssh with a key comes without problems. And the problem is the following -
when you try "ansible rhel_server -a "cat /etc/os-release"" - out of three hosts, only one is available.
if done on any machine, from inaccessible "ansible ip_host -a "cat /etc/os-release"" - everything works and responds.
What could be the problem?
in ansible.cfg
inventory = ~/.config/ansible/hosts
uncommented
~/.
ip_hsot3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question