ERROR! Specified hosts options do not match any hosts



  • $ ansible -i ansible_hosts perth -m setup
    ERROR! Specified hosts options do not match any hosts
    

    This generally means that ansible cannot find the host perth in the ansible_hosts inventory file, or a common mistake is it cannot find the inventory host file itself, either because you are not in the right directory. You can provide the full path to the file or configure ansible variable ANSIBLE_HOSTS variable.

    The default location is /etc/ansible/hosts


Log in to reply
 

© Lightnetics 2024