mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Tweaked merge_hash to also affect Runner behavior
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user