From c58de75f385dcfcef0531fc7c0cbb13bfdef0e83 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 22 Oct 2018 10:27:52 -0500 Subject: Handle sets differently than lists in wrap_var. Fixes #47372 --- test/integration/targets/loops/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/integration/targets/loops') 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 -- cgit v1.2.3