diff --git a/defaults/main.yaml b/defaults/main.yaml index 3b0075f..5f0f9d8 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -10,7 +10,7 @@ patroni_cluster_name: "patroni-cluster" patroni_namespace: "/service/" # Patroni PostgreSQL common options -patroni_postgresql_version: "16.3" +patroni_postgresql_version: "16.4" patroni_postgresql_install_repo: true patroni_postgresql_system_locale: "en_US.UTF-8" patroni_postgresql_system_language: "{{ patroni_postgresql_system_locale }}" diff --git a/tasks/config.yaml b/tasks/config.yaml index 28601a5..421088a 100644 --- a/tasks/config.yaml +++ b/tasks/config.yaml @@ -44,6 +44,7 @@ owner: "postgres" group: "postgres" mode: 0644 + backup: yes register: patroni_config_file when: not patroni_config_file_exists_result.stat.exists notify: Restart Patroni @@ -55,3 +56,4 @@ owner: "postgres" group: "postgres" mode: 0755 + backup: yes diff --git a/tasks/dynamic_config.yaml b/tasks/dynamic_config.yaml index ac8fcf5..fdf7575 100644 --- a/tasks/dynamic_config.yaml +++ b/tasks/dynamic_config.yaml @@ -10,6 +10,7 @@ owner: "postgres" group: "postgres" mode: 0644 + backup: yes register: patroni_dynamic_config_file - name: Dynamic configuration parameters for Patroni @@ -51,6 +52,7 @@ password: "{{ patroni_restapi_password }}" method: PATCH body: "{{ patroni_postgresql_combined_dynamic_parameters | to_nice_json }}" + body_format: json force_basic_auth: yes when: - "hostvars[inventory_hostname]['role'] == 'master'" diff --git a/tasks/restart_pending.yaml b/tasks/restart_pending.yaml index 0dfbc80..4cfcd59 100644 --- a/tasks/restart_pending.yaml +++ b/tasks/restart_pending.yaml @@ -38,6 +38,7 @@ password: "{{ patroni_restapi_password }}" method: POST body: '{ "restart_pending": true }' + body_format: json force_basic_auth: yes status_code: - 200