Error: "skipping: no hosts matched"
There can be multiple reasons this happens, so we’ll step through all of them. We’ll start by assuming you’re running the command
ansible-playbook galaxy.yml
The following things can cause issues:
- Within your
galaxy.yml, you’ve referred to a host group that doesn’t exist or is misspelled. Check thehosts: galaxyserversto ensure it matches the host group defined in thehostsfile. - Vice-versa, the group in your
hostsfile should match the hosts selected in the playbook,galaxy.yml. - If neither of these are the issue, it’s possible Ansible doesn’t know to check the
hostsfile for the inventory. Make sure you’ve specifiedinventory = hostsin youransible.cfg.
Persistent URL
Resource purlPURL: https://gxy.io/GTN:F00188Still have questions?
Gitter Chat Support
Galaxy Help Forum