diff options
author | Matt Martz <matt@sivel.net> | 2018-10-22 17:27:52 +0200 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2018-10-22 17:56:28 +0200 |
commit | c58de75f385dcfcef0531fc7c0cbb13bfdef0e83 (patch) | |
tree | 28c88bc7fd891ec32b6f112e356c20efc8fefcab /test/integration/targets/loops | |
parent | Fix exception when including tasks from handlers (#47307) (diff) | |
download | ansible-c58de75f385dcfcef0531fc7c0cbb13bfdef0e83.tar.xz ansible-c58de75f385dcfcef0531fc7c0cbb13bfdef0e83.zip |
Handle sets differently than lists in wrap_var. Fixes #47372
Diffstat (limited to 'test/integration/targets/loops')
-rw-r--r-- | test/integration/targets/loops/tasks/main.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/loops/tasks/main.yml b/test/integration/targets/loops/tasks/main.yml index 8cdd612aaa..026d92fd02 100644 --- a/test/integration/targets/loops/tasks/main.yml +++ b/test/integration/targets/loops/tasks/main.yml @@ -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 |