ansible_host var no longer set in devel branch

FYI, in the release1.4.4 branch, things are fine.

In the devel branch, ansible_fqdn is now empty when running the playbooks.

I have “error_on_undefined_vars = True” set in the cfg, so the error shows:

fatal: [host.mydomain.com] => {‘msg’: “One or more undefined variables: ‘ansible_fqdn’ is undefined”, ‘failed’: True}

without that set, variable is empty.

I tried doing a “ansible all -m setup” and I do see the ansible_fqdn set there.

Just wanted to let you know. Not sure if it’s known or not. I can open a bug report if you desire.

Don’t think this has changed.

Make sure you have fact gathering turned on in your play?

I don’t believe this is an issue with the play, as the same play works fine by substituting the devel branch of ansible for release 1.4.4

In addition, it does seem to run the fact:gathering before it errors:

GATHERING FACTS ***************************************************************

ok: [host.mydomain.com]

TASK: [common | Gather ec2 facts] *********************************************

ok: [host.mydomain.com]