--
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+unsubscribe@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/4bb2a137-fbf3-4721-8531-d00835929b4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
Why using command to have the hostname ? (command and shell
module should be avoided each time it is possible) Fact already
have some variable you can use, no ?
Example on my personnal machine :
"ansible_fqdn": "DellJylenhof",
"ansible_hostname": "DellJylenhof",
"ansible_nodename": "DellJylenhof",
As I have not parameter domain on my machine, regarding documentation what you want is "ansible_hostname" Regards, JYL
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08TtTdwSmU8HohXz6RYBCpWXG1U%2BhBQm%3D_ZiUti%3DrHr%3DqQ%40mail.gmail.com.