FQDN in playbook but not in inventory file - skipping: no hosts matched

13 views
Skip to first unread message

Listing

unread,
Jul 20, 2017, 3:10:44 AM7/20/17
to Ansible Project
Hi all,

When specifying an host in the playbook itself but not in the inventory file, I get the message 'skipping: no hosts matched.'

When I pass the host via:

ansible-playbook playbook.yml -i hostname,

All is just working fine.

But why is Ansible unable to just pick up this host defined in the playbook without needing an inventory file that specifies exactly the same information about this host?
Reply all
Reply to author
Forward
0 new messages