mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Handle sets differently than lists in wrap_var. Fixes #47372
This commit is contained in:
parent
6497049f2a
commit
c58de75f38
3 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue