You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the lab I get errors around the inventory file/host file not being found:
ansible-playbook ansible-02-ios-modules/02-ios_command_show.yaml
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: iosxe
I think you got it right. Have checked official documentation from ansible here: https://docs.ansible.com/ansible/latest/reference_appendices/config.html
They have reference to inventory, but didn't find reference to hostfile. Here is what they have on the doc. page: inventory = /etc/ansible/hosts ; This points to the file that lists your hosts
When trying to run the lab I get errors around the inventory file/host file not being found:
ansible-playbook ansible-02-ios-modules/02-ios_command_show.yaml [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: Could not match supplied host pattern, ignoring: iosxe
I believe the
ansible.cfg
file is incorrect.When changed from:
to (changing line 2)
all errors are solved and the playbooks run as intended.
I would create a pull request for this change but want someone to sanity check this first for me.
The text was updated successfully, but these errors were encountered: