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