update to ansible appears to have broken required functionality - setup delegate_facts

33 views
Skip to first unread message

Peter Heitman

unread,
Feb 6, 2017, 9:41:41 AM2/6/17
to Ansible Project
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

Jason Gilfoil

unread,
Apr 17, 2017, 12:54:22 PM4/17/17
to Ansible Project
Did you find a solution to this? I'm having the same issue on the same version, ansible 2.2.1.0. 

Jason Gilfoil

unread,
Apr 17, 2017, 1:05:42 PM4/17/17
to Ansible Project
nvm, found a bug report on this issue here:


I'll update that ticket with my feedback.
Reply all
Reply to author
Forward
0 new messages