The following works on the command line, but I can't seem to find the right 
syntax to put it into a playbook:
root@ansible:/playbooks # ansible -m setup -a 'filter=ansible_hostname' 
ansible-oel6
ansible-oel6 | SUCCESS => {
    "ansible_facts": {
        "ansible_hostname": "ansible-oel6"
    },
    "changed": false
}



On Tuesday, January 23, 2018 at 10:42:52 AM UTC-7, John Harmon 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 [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/813491c6-1212-4340-883f-762f83c39d4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to