localhost | SUCCESS => {
"ansible_facts": {
"ansible_dns": {
"nameservers": [
"192.168.1.1",
"192.168.1.2"
],
"search": [
"example.com",
]
}
},
"changed": false
}
*I am trying to reference my nameservers but I am running into syntactical
issues. I cannot find any docs online that show me how to access a list
from gathering facts.*
I have tried the following:
- name: Allow httpd access to files on CIFS volumes that are labeled with
the cifs_t type
seboolean: name=httpd_use_cifs state=true persistent=yes
when: ansible_dns == nameservers == '192.168.1.1' and ansible_dns ==
nameservers == '192.168.1.2'
- name: Allow httpd access to files on CIFS volumes that are labeled with
the cifs_t type
seboolean: name=httpd_use_cifs state=true persistent=yes
when: nameservers == '192.168.1.1' and nameservers == '192.168.1.2'
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d1dd82cd-d0bf-4c0e-960b-ddd66a4aec2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.