this 2nd output shows ansible_facts not returning anything, unlike
your previous output.

but ran a test with my own system copying and pasting your last
playbook and I get this:

PLAY [localhost] **************************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [show inventory_hostname] ***********************************************
ok: [localhost] => {
    "msg": "inventory_hostname is  localhost"
}

TASK: [show ansible_fqdn] *****************************************************
ok: [localhost] => {
    "msg": "ansible_fqdn is  workstation.briancoca.local"
}

TASK: [set ansible_fqdn fact] *************************************************
ok: [localhost]

TASK: [show ansible_fqdn] *****************************************************
ok: [localhost] => {
    "msg": "ansible_fqdn is  localhost"
}

PLAY RECAP ********************************************************************
localhost                  : ok=5    changed=0    unreachable=0    failed=0

what version of ansible are you using?
-- 
Brian Coca

-- 
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/CAJ5XC8kkiF%3D4ZhyWzde0Th3Z14sUsLr1n5161Bn-pCoa_yi84g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to