Muhammad Asif:
Hi Guys , I’m installed the Ansible 2.9.6 , when I’m pin with local host the but when I’m replace localhost with IP the show error , can anyone guide me
Al West:
You need to run:
ansible -i 192.168.1.121, -m ping all
You need to supply an inventory file for remote hosts
Al West:
Also I would consider installing ansible through pip3 - it will be more up to date
Al West:
Did you copy your SSH public key?
Muhammad Asif:
yes
Al West:
You didn’t do it right or else it would work.
Al West:
run ssh-copy-id 192.168.1.121
Muhammad Asif:
yes its working
Muhammad Asif:
but facing issue in playbook
Muhammad Asif:
how it is working for both server and agent node ansible. now the show error when i’m ping to another IP
Muhammad Asif:
@Al West
Al West:
You need to supply an inventory, either on the command line or in an inventory file.