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.
>
--
To post to this group, send email to [EMAIL PROTECTED].