# ansible\_host var no longer set in devel branch

**URL:** <https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436>\
**Category:** Ansible Project\
**Created:** [January 27, 2014, 9:10pm UTC](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436 "2014-01-27T21:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [January 27, 2014, 9:10pm UTC](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436/1 "2014-01-27T21:10:55Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 27, 2014, 9:23pm UTC](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436/2 "2014-01-27T21:23:26Z")

</div>

Don’t think this has changed.

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

---

<div class="post-metadata">

**Author:** ![Paul\_Hassinger](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Post date:** [January 27, 2014, 9:41pm UTC](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436/3 "2014-01-27T21:41:13Z")

</div>

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:

```auto
GATHERING FACTS ***************************************************************

ok: [host.mydomain.com]

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

ok: [host.mydomain.com]

```
