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.

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
Ansible - Get Facts from Remote Windows Hosts

I am using Ansible / Ansible Tower and would like to determine what facts are available on my Windows host. The …

ansible ansible-playbook ansible-facts
Amazon Linux machine - Ansible ansible_distribution* variables major release distribution

I'm using Ansible: 2.2.0.0 I have 3 machines: Two vagrant boxes (one CentOS 7.x and one Ubuntu 14.04) and 3rd box is an …

amazon-web-services amazon-ec2 yum ansible-2.x ansible-facts
Getting MAC address from Ansible facts in role

I'm trying to get the MAC address for the current host so that I can use the value in a …

ansible ansible-playbook ansible-facts
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
VARIABLE IS NOT DEFINED when trying to register output in playbook

I'm trying to register a variable with the output to a query of a F5 pool and I'm getting this …

ansible ansible-facts
How to gather facts about disks using Ansible

I am trying to write an Ansible playbook which will identify newly added disks on a RHEL machine. The plan …

ansible ansible-facts
How to extract the exact output from stdout.lines in ansible

My Ansible Playbook: #Tag --> B.6 --> - name: Change the Security Realm to CustomRealm from ManagementRealm command: /…

ansible ansible-2.x ansible-facts ansible-template
Discover management IP and use it in a template

I'm trying to setup my sshd_config file using Ansible. For design reasons (we have both virtual and physical machines, …

ansible ansible-facts
{{ ansible_hostname }} not working while calling directly with Ansible 2.3

Has anyone faced the following issue with "{{ ansible_hostname }}" while calling in a playbook task directly? Please suggest if there …

ansible ansible-2.x ansible-facts