Enable recursion in combine() filter

Ansible's combine() filter needs recursive=True parameter in order to recursively merge nested hashes.

https: //docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#combining-hashes-dictionaries
Change-Id: I804bf03f7e459a5e572fc55d1d40c3ba45d2d736
changes/20/824220/1
Damian Dabrowski 9 months ago
parent 6a03389cbc
commit d6303c9343
  1. 2
      tasks/tempestconf.yml

@ -25,7 +25,7 @@
- name: Override tempestconf profile
copy:
content: "{{ tempest_tempestconf_profile | combine(tempest_tempestconf_profile_extras) | to_nice_yaml }}"
content: "{{ tempest_tempestconf_profile | combine(tempest_tempestconf_profile_extras, recursive=True) | to_nice_yaml }}"
dest: "{{ tempest_workspace }}/etc/profile.yaml"
mode: "0644"

Loading…
Cancel
Save