https://github.com/zerwes/ansible-hash-merge-test
test hash merging for ansible
https://github.com/zerwes/ansible-hash-merge-test
Last synced: 7 months ago
JSON representation
test hash merging for ansible
- Host: GitHub
- URL: https://github.com/zerwes/ansible-hash-merge-test
- Owner: zerwes
- License: gpl-3.0
- Created: 2024-07-05T06:41:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T20:13:54.000Z (about 2 years ago)
- Last Synced: 2025-01-23T06:46:03.039Z (over 1 year ago)
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-hash-merge-test
test hash merging for ansible
as soon as jinga2 statements are in use, the hash merging will not work as expected :exclamation:
you must use a interim var for the jinja2 construct and a explicit merge using combine filter:
```yaml
- ansible.builtin.set_fact:
dictmerge_two: "{{ dictmerge_two | combine(dictmerge_interim) }}"
```