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

How to fix permission denied error when trying to install packages using Ansible?

I'm trying to write a simple Ansible Playbook, please look at snippets below. Using Ansible 2.4.0.0, Ubuntu 17.04, Python 2.7.13. This is my …

ansible ansible-inventory
undefined variable in ansible

Below is the my ansible tasks which will fetch domain name and which will register the output to item value …

ansible ansible-2.x ansible-inventory ansible-facts
How to Play with particular group using Ansible Playbook

Ansible version: 2.1.0 My ansible hosts file is: [PM] xyz.example.com ansible_connection=ssh [ND] pqr.example.com ansible_connection=…

ansible ansible-2.x ansible-inventory
Concatenate strings using with_items and assign to a variable in Ansible

I need to save two 2 IPs to a variable in a vars_file when launching ec2_instances, which are used …

ansible ansible-2.x ansible-inventory ansible-facts
Ansible - Using a logical OR to match host groups

I am trying to get this to only apply to my dev and hydra servers. I have 2 host files with …

ansible ansible-inventory
how to use json file consisting of host info as input to ansible inventory

I am trying to use the following json file as input to ansible host inventory but I get error when …

ansible-inventory
How to fix 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'value' error

I have defined the nginx_upstreams variable in a different role that in turn uses the geerlingguy.nginx role and …

ansible ansible-2.x ansible-inventory ansible-template
Ansible stops connecting to the host via ssh

Introduction For over a month I've been running the following command: ansible-playbook -vvvvi host_test rhel-tests.yml Which connected via …

ssh ansible ansible-2.x ansible-inventory
Ansible: using nested groups with vars

I have a situation where we have 3 tiers of boxes, in each tier we apply different variables settings (like where …

ansible ansible-inventory
Proper way to define default variables for all hosts in Ansible

There is a definition of [all:vars] in my ansible inventory file as follows: [all:vars] ansible_shell_type=bash …

ansible ansible-inventory