1
0
Fork 0
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:
Brian Coca 2015-06-15 17:12:18 -04:00
parent 6c884c9e39
commit dc31086a17

View file

@ -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'"