mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
added with_dict test
This commit is contained in:
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user