root@ansible:/playbooks # ansible -m setup -a 'filter=ansible_hostname' ansible-oel6
ansible-oel6 | SUCCESS => {
"ansible_facts": {
"ansible_hostname": "ansible-oel6"
},
"changed": false
}
Is there a way for me to specify the only fact I care about gathering? I have a server that is giving me grief due to the way its disks are setup (tons of nfs shares, etc).... at least I assume that is why it is giving me grief. I just need to gather the ansible_hostname fact.
--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9dc29978-9cdf-4895-afbb-5da27bc9b4a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
pre_tasks:
- setup:
gather_subset: min
filter: ansible_hostname
The most minimal you can do, and still get that would be to define:gather_subset: platformIt will include ansible_hostname, plus a few extras.
On Tue, Jan 23, 2018 at 11:42 AM, John Harmon <jharmon...@gmail.com> wrote:
Is there a way for me to specify the only fact I care about gathering? I have a server that is giving me grief due to the way its disks are setup (tons of nfs shares, etc).... at least I assume that is why it is giving me grief. I just need to gather the ansible_hostname fact.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9dc29978-9cdf-4895-afbb-5da27bc9b4a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.