Sample Header Ad - 728x90

Ansible not able to find host from inventory

1 vote
1 answer
6696 views
I am trying to run a playbook on a selective host after it has been provisioned using earlier set of tasks I am able to ping the host and the same is available in the /etc/ansible/hosts file however the play says skipping: no hosts matched and does not run. Ansible hosts file looks like below vm1 ansible_host=192.168.200.52 I have tried mentioning the inventory file using -i with no success, what could be wrong here ? **UPDATE**: Added the /etc/ansible/hosts as default inventory however the playbook still says its not able to see the VM
Asked by Atul (1911 rep)
Feb 2, 2020, 02:08 PM
Last activity: May 5, 2025, 04:08 PM