Top "Ansible-inventory" questions

Use this tag for questions regarding the Ansible inventory defined either as a static file (aka hosts file), or dynamically through external scripts (for example AWS EC2 inventory).

Multistage deployment with ansible

What approach would you advise to organize multistage deployment with Ansible in case you have different variables for stages? The …

deployment ansible ansible-inventory
did not find expected <document start>

Ansible is reading /etc/ansible/hosts file and giving errors that I don't understand. ARNING]: * Failed to parse /etc/ansible/…

ansible ansible-inventory
Can I override Ansible SSH key inventory variable ansible_ssh_private_key_file on command line?

In Ansible 2.4.2.0, can I override the SSH key set in inventory with ansible_ssh_private_key_file on command line? …

ssh ansible ssh-keys ansible-inventory
How to add multiple inventory files in command line while executing a playbook

I am having a playbook with two different plays Sample.yml - name : Play1 hosts: Host1 tasks: ... - name: Play2 …

ansible ansible-2.x ansible-inventory
How can I provide the SSH user passwords for a set of hosts in ansible using vault

Considering the following Ansible hosts file: [webservers] server1.example.com ansible_ssh_pass=1234567 server2.example.com ansible_ssh_pass=2345678 server3.…

ansible ansible-inventory ansible-vault
Limit ansible playbook by `hosts` of plays

I have an inventory file like: [my_domain] 255.255.255.255 [production:children] my_domain [load_balancer:children] my_domain [webservers:children] my_…

ansible ansible-inventory