mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added with_dict test
This commit is contained in:
parent
6c884c9e39
commit
dc31086a17
1 changed files with 10 additions and 0 deletions
|
@ -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'"
|
||||
|
|
Loading…
Reference in a new issue