Top "Ansible-facts" questions

Use this tag for questions regarding Ansible facts - values discovered by the setup module of Ansible or pulled from ohai/facter.

'dict object' has no attribute 'stdout' in Ansible Playbook

My playbook: - name: JBoss KeyStore and Truststore passwords will be stored in the password vault #shell: less "{{ vault }}" shell: …

ansible ansible-2.x ansible-facts ansible-template
Fastest way to gather facts to fact cache

I am trying to make Ansible work with --limit and to do that I need facts about other hosts, which …

caching ansible ansible-facts
How to store command output into array in Ansible?

Essentially, I want to be able to handle "wildcard filenames" in Linux using ansible. In essence, this means using the …

arrays linux ansible ansible-facts
Create set_fact variables in one role and use them in an other

I have a complicated environment with stages and users for multiple systems. The stages are: dev, int, etc. Each stage …

ansible ansible-facts
Unable to access hostvars when the inventory_host is inserted as a variable

I have a jinja2 template, and I'm trying to loop through a host group, and insert the ipv4 address of …

ansible ansible-facts
How to use a dictionary of registered ansible variables in vars?

I want to pass multiple variables to a task using vars. Currently, I am doing it like below vars: var1_…

ansible ansible-facts
Ansible: Using ansible facts, how can I get a disk device based on the storage controller value and then set the device as a variable

Context: I have a system that has a combination of disks from different storage controllers, so each type of disk …

ansible ansible-facts
Ansible: ansible_domain or facter_domain - How to get domain value of a hostname mentioned in inventory file

Ansible 1.9.2 / 1.9.4 CentOS 6.7 In my invetory file, I have: [zabbix_server] zabbix.dev-white.projectname.jenkins [some_other_zabbix_server] someotherzabbix.dev-blue.…

ansible ansible-playbook ansible-2.x domain-name ansible-facts
ansible output printing unwanted things. how to format and display only specific data's

I am using ansible 2.4 in centos, trying to run the below script in remote servers and getting the output. Here …

ansible ansible-2.x ansible-inventory ansible-facts ansible-template
Force fact-gathering on all hosts

I'm sitting in front of a fairly complex Ansible project that we're using to set up our local development environments (…

ansible limit hosts ansible-facts