mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Tweaked merge_hash to also affect Runner behavior
This commit is contained in:
parent
94d189bc7f
commit
6826aa7360
9 changed files with 110 additions and 23 deletions
3
test/test_hash_behavior/goodbye.yml
Normal file
3
test/test_hash_behavior/goodbye.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
messages:
|
||||
goodbye: "Goodbye World!"
|
3
test/test_hash_behavior/hello.yml
Normal file
3
test/test_hash_behavior/hello.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
messages:
|
||||
hello: "Hello World!"
|
3
test/test_hash_behavior/message.j2
Normal file
3
test/test_hash_behavior/message.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% for k, v in messages.iteritems() %}
|
||||
{{ k }}: {{ v }}
|
||||
{% endfor %}
|
11
test/test_hash_behavior/playbook.yml
Normal file
11
test/test_hash_behavior/playbook.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- hosts: all
|
||||
connection: local
|
||||
|
||||
vars_files:
|
||||
- hello.yml
|
||||
- goodbye.yml
|
||||
|
||||
tasks:
|
||||
- name: generate messages
|
||||
action: template src=message.j2 dest=/tmp/ansible_test_messages.out
|
Loading…
Add table
Add a link
Reference in a new issue