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).

Accessing inventory host variable in Ansible playbook

In Ansible 2.1, I have a role being called by a playbook that needs access to a host file variable. Any …

ansible ansible-2.x ansible-inventory
Ansible - read inventory hosts and variables to group_vars/all file

I have a dummy doubt that keeps me stuck for a long time. I have a very banal inventory file …

ansible ansible-inventory
Ansible provisioning ERROR! Using a SSH password instead of a key is not possible

I would like to provision with my three nodes from the last one by using Ansible. My host machine is …

ssh vagrant ansible ansible-inventory
Where to store Ansible host file on Mac OS X

I am trying to get started with Ansible to provision my Vagrantbox, but I can’t figure out how to …

macos ansible ansible-inventory
How to fix "Could not match supplied host pattern, ignoring: bigip" errors, works in Ansible, NOT Tower

I am running Ansible Tower v3.4.1 with Ansible v2.7.6 on an ubuntu 16.04 VM running on VirtualBox. I run a playbook …

ansible ansible-inventory
Is it possible to write Ansible hosts/inventory files in YAML?

In the best practices page, there is an example that uses hosts.yml for hosts files: In the docs, however, …

ansible ansible-inventory
Ansible: ansible_user in inventory vs remote_user in playbook

I am trying to run an Ansible playbook against a server using an account other than the one I am …

ansible ansible-2.x ansible-inventory
Running a playbook on multiple host groups one at a time

I want to run a playbook containing some roles on multiple host groups I create dynamically with the group_by …

ansible ansible-2.x ansible-inventory
how to specify user name in host file of ansible

I am using the host file as below, [qa-workstations] 10.39.19.190 ansible_user=test ansible_ssh_pass=test I am using below …

ansible ansible-playbook ansible-inventory
Ansible: How to use variables defined in inventory file (hosts) in my playbook?

As the subject says. I have some host variables defined in my hosts inventory file. How do I access them …

variables ansible ansible-inventory