# update to ansible appears to have broken required functionality - setup delegate\_facts

**URL:** <https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618>\
**Category:** Ansible Project\
**Created:** [February 2, 2017, 1:18pm UTC](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618 "2017-02-02T13:18:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Heitman](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Peter\_Heitman](https://forum.ansible.com/u/Peter_Heitman)\
**Post date:** [February 2, 2017, 1:18pm UTC](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618/1 "2017-02-02T13:18:22Z")

</div>

I am running ansible on CentOS 6.8. This morning I ran yum update and got updated to a new version

Updating : ansible-2.2.1.0-1.el6.noarch

Unfortunately this appears to have broken my working ansible script. In particular, the task

- name: Gather info about consul servers  
setup:  
delegate\_to: “{{item}}”  
delegate\_facts: True  
when: “{{hostvars[item][‘ansible\_default\_ipv4’] is not defined}}”  
with\_items: “{{consul\_servers}}”

while it runs commands against each of the three hosts defined in the list {{consul\_servers}}, it only updates the hostvars for the first host. The second and third hosts are not set up with their associated ansible\_\* variables in hostvars.

This worked yesterday but not today.

First, is it possible that today’s update changed this behavior?

Second, is there a workaround - this functionality is critical for my script.

Peter

---

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [April 17, 2017, 4:54pm UTC](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618/2 "2017-04-17T16:54:22Z")

</div>

Did you find a solution to this? I’m having the same issue on the same version, ansible 2.2.1.0.

[https://pastebin.com/a2gPLwWm](https://pastebin.com/a2gPLwWm)

---

<div class="post-metadata">

**Author:** ![Jason3](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jason3](https://forum.ansible.com/u/Jason3)\
**Post date:** [April 17, 2017, 5:05pm UTC](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618/3 "2017-04-17T17:05:42Z")

</div>

nvm, found a bug report on this issue here:

[https://github.com/ansible/ansible/issues/20980](https://github.com/ansible/ansible/issues/20980)

I’ll update that ticket with my feedback.
