this is how the underlying python functions and system calls work.

On Tue, Dec 15, 2015 at 10:07 AM, Julien Tognazzi
<julien.togna...@gmail.com> wrote:
> I justed tested with ansible 2 RC2 and I have the same behavior.
>
> Maybe I should add that the server is a CentOS 6 box.
>
> On Tuesday, December 15, 2015 at 1:02:56 PM UTC+1, Julien Tognazzi wrote:
>>
>> 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_domain": "mydomain.ch",
>>         "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,
>> 1.2.3.4 otherserver.otherdomain.ch
>>
>> $ ansible -i test localhost -m setup | grep "domain|fqdn"
>>         "ansible_domain": "otherdomain.ch",
>>         "ansible_fqdn": "otherserver.otherdomain.ch",
>>         "facter_domain": "mydomain.ch",
>>         "facter_fqdn": "myserver.mydomain.ch",
>>
>> $ ansible --version
>> ansible 1.9.2
>>
>> Regards,
>>
>> Julien.
>
> --
> 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/935f1072-9143-497f-b640-8c86f90bbebb%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8kiMtSC11EvzG%3D445J-3pRKJqxXPjOT6Ss7Q2tLvUX7Ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to