Handle sets differently than lists in wrap_var. Fixes #47372 (#47510)

This commit is contained in:
Matt Martz 2018-10-23 11:18:21 -05:00 committed by GitHub
commit f6ecdf0b87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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|list|unique }}"
vars:
things:
- !unsafe foo
- !unsafe bar