fix(consul): merge join configuration variable
All checks were successful
development / Check commit compliance (push) Successful in 29s

This commit is contained in:
Bertrand Lanson 2024-07-21 00:37:18 +02:00
parent 2c9f538cef
commit c7ed8c09a3
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

@ -20,6 +20,15 @@
when:
- consul_enable_server
- name: "Consul | Merge join configuration"
vars:
_config_to_merge: "{{ consul_join_configuration }}"
ansible.builtin.set_fact:
consul_configuration: "{{
consul_configuration |
combine(_config_to_merge|from_yaml, recursive=true)
}}"
- name: "Consul | Merge addresses configuration"
vars:
_config_to_merge: "{{ consul_address_configuration }}"