From 875fe5cbf2595602b415cf7827304eda0925da1a Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 30 Aug 2023 18:27:51 +0300 Subject: [PATCH] patroni: fix dynamic parameters --- tasks/dynamic_config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/dynamic_config.yaml b/tasks/dynamic_config.yaml index 66211b5..81b35a4 100644 --- a/tasks/dynamic_config.yaml +++ b/tasks/dynamic_config.yaml @@ -1,11 +1,11 @@ --- - name: Merge Patroni dynamic parameters for backup set_fact: - patroni_postgresql_dynamic_parameters: "{{ patroni_postgresql_dynamic_parameters | combine(patroni_postgresql_backup_parameters, recursive=true) }}" + patroni_postgresql_combined_dynamic_parameters: "{{ patroni_postgresql_dynamic_parameters | combine(patroni_postgresql_backup_parameters, recursive=true) }}" - name: Propagate Patroni dynamic config copy: - content: "{{ patroni_postgresql_dynamic_parameters | to_nice_json }}" + content: "{{ patroni_postgresql_combined_dynamic_parameters | to_nice_json }}" dest: "/etc/patroni/dynamic.json" owner: "postgres" group: "postgres" @@ -50,7 +50,7 @@ user: "{{ patroni_restapi_username }}" password: "{{ patroni_restapi_password }}" method: PATCH - body: "{{ patroni_postgresql_dynamic_parameters | to_nice_json }}" + body: "{{ patroni_postgresql_combined_dynamic_parameters | to_nice_json }}" force_basic_auth: yes when: - "hostvars[inventory_hostname]['role'] == 'master'"