Ansible - Inventory file format (INI YAML)

The default hosts file or your own inventory file can use different formats. The most commonly used formats are INI and YAML. Follow are example INI and YAML configurations.






Once the default hosts file or your own inventory file has been updated to contain managed nodes (e.g. target systems), you can run tasks against the managed nodes. For example, the following command would ping every managed node in your default hosts file.

ansible all -m ping


Which should return something like this. | SUCCESS => {
    "changed": false,
    "ping": "pong"


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 b4bdf in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |