Ansible - Defining your inventory

Tasks are run against managed nodes, also known as hosts.

 

After a clean install of Ansible, the default hosts file is /etc/ansible/hosts. The default hosts file is completely commented out. If you were to issue command ansible all -m ping, the following would be displayed.

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

 

Managed nodes are defined in inventory. There are multiple ways to define your inventory:

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter 3df13 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |