I've been having trouble with this for a while..
On Ubuntu 14.04 (current LTS), the ansible_fqdn variable often only 
contains the hostname, not the hostname+domainname.

I've tried to fix this by having ansible insert a line like this in 
/etc/hosts, but it didn't help.
127.0.1.1 {{ inventory_hostname }} {{ ansible_hostname }}
(Which expands to 127.0.1.1 hostname.domain.name hostname)

Does anyone have other suggestions?

-- 
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/53dfbfc2-e899-49b4-a340-ccc20ec187f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to