In order to access some ansible_* variables you need to gather facts on the
host before.
See e.g.
https://stackoverflow.com/questions/45908067/whats-the-difference-between-inventory-hostname-and-ansible-hostname
Am 03.11.18 um 21:15 schrieb Barry Kaplan:
Why would this be? It has lots and lots of ansible_* variables, but some others
like ansible_hostname or ansible_mounts.
This is not the case for hosts though, just some.
--
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+unsubscr...@googlegroups.com <mailto:ansible-project+unsubscr...@googlegroups.com>.
To post to this group, send email to ansible-project@googlegroups.com
<mailto:ansible-project@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/93639896-f6e0-413b-bb24-e74f7413c0aa%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/93639896-f6e0-413b-bb24-e74f7413c0aa%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@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/89765638-b237-6df8-0da2-5f019a8a3553%40gmail.com.
For more options, visit https://groups.google.com/d/optout.