From 31d4b33468e4a4037ba26aec94005e97edff7f35 Mon Sep 17 00:00:00 2001 From: ace Date: Sun, 3 Nov 2024 17:10:10 +0300 Subject: [PATCH] update version and keep old configs on update --- defaults/main.yaml | 2 +- tasks/RedHat/config.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 014d2bd..105e965 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1,4 +1,4 @@ -postgresql_version: "16.3" +postgresql_version: "16.4" # Options postgresql_install_official_repo: true diff --git a/tasks/RedHat/config.yaml b/tasks/RedHat/config.yaml index e2bc223..6048cb6 100644 --- a/tasks/RedHat/config.yaml +++ b/tasks/RedHat/config.yaml @@ -27,6 +27,7 @@ mode: 0600 owner: "{{ postgresql_user }}" group: "{{ postgresql_group }}" + backup: yes register: pg_hba_config_file notify: - Reload PostgreSQL @@ -38,6 +39,7 @@ mode: 0600 owner: "{{ postgresql_user }}" group: "{{ postgresql_group }}" + backup: yes register: postgresql_config_file notify: - Reload PostgreSQL @@ -49,6 +51,7 @@ mode: 0600 owner: "{{ postgresql_user }}" group: "{{ postgresql_group }}" + backup: yes register: postgresql_ssl_config_file notify: - Reload PostgreSQL