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 <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-04-21 16:12:44 +02:00
parent e7673a2538
commit 13ad0cea66

View file

@ -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: