mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2025-04-05 14:41:56 +00:00
patroni: fix dynamic parameters
This commit is contained in:
parent
9b82371789
commit
875fe5cbf2
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Merge Patroni dynamic parameters for backup
|
- name: Merge Patroni dynamic parameters for backup
|
||||||
set_fact:
|
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
|
- name: Propagate Patroni dynamic config
|
||||||
copy:
|
copy:
|
||||||
content: "{{ patroni_postgresql_dynamic_parameters | to_nice_json }}"
|
content: "{{ patroni_postgresql_combined_dynamic_parameters | to_nice_json }}"
|
||||||
dest: "/etc/patroni/dynamic.json"
|
dest: "/etc/patroni/dynamic.json"
|
||||||
owner: "postgres"
|
owner: "postgres"
|
||||||
group: "postgres"
|
group: "postgres"
|
||||||
@ -50,7 +50,7 @@
|
|||||||
user: "{{ patroni_restapi_username }}"
|
user: "{{ patroni_restapi_username }}"
|
||||||
password: "{{ patroni_restapi_password }}"
|
password: "{{ patroni_restapi_password }}"
|
||||||
method: PATCH
|
method: PATCH
|
||||||
body: "{{ patroni_postgresql_dynamic_parameters | to_nice_json }}"
|
body: "{{ patroni_postgresql_combined_dynamic_parameters | to_nice_json }}"
|
||||||
force_basic_auth: yes
|
force_basic_auth: yes
|
||||||
when:
|
when:
|
||||||
- "hostvars[inventory_hostname]['role'] == 'master'"
|
- "hostvars[inventory_hostname]['role'] == 'master'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user