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.