I just ran into this same problem. Here is a much simpler test case:
- debug: msg="DICT {{item.key}}"
when: undefined_dict is defined
with_dict: undefined_dict
results in:
TASK: [consul | debug msg="DICT {{item.key}}"]
********************************
fatal: [consul-client-1] => with_dict expects a dict
--
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/899892c7-49f2-4e04-a496-ced73f9dbb84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.