From 13ad0cea66eae7123c76a8c2237cc40809f20fdc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 21 Apr 2020 16:12:44 +0200 Subject: [PATCH] postgresql_server: do not install our current postgresql.conf on RHEL8 Our postgresql.conf is from postgresql 9.2 while RHEL8 ships 10.x which leads to postgresql no longer wanting to start (as seen on pagure-stg01). Signed-off-by: Pierre-Yves Chibon --- roles/postgresql_server/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/postgresql_server/tasks/main.yml b/roles/postgresql_server/tasks/main.yml index 2f495f1617..f63fbcaa32 100644 --- a/roles/postgresql_server/tasks/main.yml +++ b/roles/postgresql_server/tasks/main.yml @@ -84,6 +84,7 @@ - name: postgresql config template template: dest=/var/lib/pgsql/data/postgresql.conf src=postgresql.conf + when: (ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat') or ansible_distribution != 'RedHat' notify: - restart postgresql tags: