diff --git a/test/integration/roles/test_lookups/tasks/main.yml b/test/integration/roles/test_lookups/tasks/main.yml index 44e8b18ccb4..89f9e3f886b 100644 --- a/test/integration/roles/test_lookups/tasks/main.yml +++ b/test/integration/roles/test_lookups/tasks/main.yml @@ -159,3 +159,13 @@ that: - "test_val == known_var_value.stdout" + +- name: set with_dict + shell: echo "{{ item.key + '=' + item.value }}" + register: keyval + with_dict: "{{ mydict }}" + +- name: compare dict return + assert: + that: + - "keyval.stdout == 'mykey=myval'"