Hi,
Could someone please point me to the proper way of using ansible facts inside templates?
I’m at latest devel and have the following content inside template:
{{ inventory_hostname }}
{{ ansible_hostname }}
With template action it results in just IP for first variable and empty ansible_hostname (other facts doesn’t work too)
Setup module correctly displays ansible_hostname during test run.
Thanks,
Dmitry