Commit dc31086a by Brian Coca

added with_dict test

parent 6c884c9e
...@@ -159,3 +159,13 @@ ...@@ -159,3 +159,13 @@
that: that:
- "test_val == known_var_value.stdout" - "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'"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment