Hi all,
Is it the expected behavior that the value of ansible_domain and ansible_fqdn changes if an entry in /etc/hosts match the server ip ?
With no entry in /etc/hosts
$ ansible -i test localhost -m setup | grep "domain|fqdn"
"ansible_fqdn": "myserver.mydomain.ch",
"facter_domain": "mydomain.ch",
"facter_fqdn": "myserver.mydomain.ch",
Then if I add the following entry in /etc/hosts corresponding with the IP of the server,
$ ansible -i test localhost -m setup | grep "domain|fqdn"
$ ansible --version
ansible 1.9.2
Regards,
Julien.