Handle sets differently than lists in wrap_var. Fixes #47372

This commit is contained in:
Matt Martz 2018-10-22 10:27:52 -05:00 committed by Brian Coca
commit c58de75f38
3 changed files with 19 additions and 1 deletions

View file

@ -258,3 +258,13 @@
loop: []
register: literal_empty_list
failed_when: literal_empty_list is not skipped
# https://github.com/ansible/ansible/issues/47372
- name: Loop unsafe list
debug:
var: item
with_items: "{{ things|map('string')|unique }}"
vars:
things:
- !unsafe foo
- !unsafe bar