Hi,

after upgrading from ansible 1.9.4 to 2.0.1.0
the task[1] shown below fails with the following message:

FAILED! => {"failed": true, "msg": "an unexpected type error occurred.
Error was 'bool' object has no attribute '__getitem__'"}


- name: setup IP list (1/2)
  set_fact:
    ips:
        ipv4: "{{ item.0 }}"
        ipv6: "{{ item.1 }}"
  with_together:
        - "{{ tor_v4ips }}"
        - "{{ tor_v6ips }}"
  register: ipsinterm


tor_v4/6ips are basically:
ansible_all_ipv4/6_addresses facts


Expected behavior:
The loop should not fail even if the host has no IPv6 IPs
(it used to work fine with v1.9.4)

Is this a bug/regression or an expected behavior change?




[1]
https://github.com/nusenu/ansible-relayor/blob/61a4057895a1c98e8b895e75bc1df30033af502a/tasks/ip-list.yml#L3

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/56DAB742.8010705%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to