Inventory — Ansible Documentation
docs.ansible.com › ansible › 2Ansible works against multiple systems in your infrastructure at the same time. It does this by selecting portions of systems listed in Ansible’s inventory file, which defaults to being saved in the location /etc/ansible/hosts. You can specify a different inventory file using the -i <path> option on the command line.
Inventory — Ansible Documentation
https://docs.ansible.com/ansible/2.3/intro_inventory.htmlAnsible works against multiple systems in your infrastructure at the same time. It does this by selecting portions of systems listed in Ansible’s inventory file, which defaults to being saved in the location /etc/ansible/hosts.You can specify a different inventory file using the -i <path> option on the command line. Not only is this inventory configurable, but you can also use multiple ...
Ansible Series: The inventory file - variables, aliases and ...
dharmitshah.com › 2017 › 09Sep 30, 2017 · In the previous post on inventory file, we saw that inventory file is central location that stores information about the remote hosts. It’s not necessary that we would always want to deal with remote hosts. Ansible can also work on the control system (localhost). $ cat /etc/ansible/hosts localhost [servers] 172.29.33.22 172.29.33.23 And let’s try the ping module: $ ansible -m ping all ...