ansible Getting started with ansible Inventory


Inventory is the Ansible way to track all the systems in your infrastructure. Here is a simple static inventory file containing a single system and the login credentials for Ansible.

[targethost] ansible_user=mrtuovinen ansible_ssh_pass=PassW0rd

Write these lines for example to hosts file and pass the file to ansible or ansible-playbook command with -i/--inventory-file flag.

See static inventory and dynamic inventory for more details.