Hi Guys , I'm installed the Ansible 2.9.6 , when I'm pin with local host the but . . .

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
image.png

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

Muhammad Asif:
already try

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
image.png

Muhammad Asif:
but facing issue in playbook
image.png

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
image.png
image.png

Al West:
You need to supply an inventory, either on the command line or in an inventory file.