[postgresql] dont restart postgres, only reload it

certbot_on_virtu
_shirenn 2021-05-13 21:30:28 +02:00 committed by Yohann D'ANELLO
parent 57b72e53cc
commit 9190313690
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 5 additions and 7 deletions
roles/postgresql
handlers

View File

@ -13,6 +13,7 @@ debian_mirror: http://172.17.10.202/debian
loc_psql:
subnets:
- 172.17.10.0/24
- fd00:0:0:3010::/64
version: 11
hosts:
- { db: re2o, user: re2o }

View File

@ -1,6 +1,3 @@
---
- name: restart postgresql
systemd:
name: postgresql@{{ psql.version }}-main
state: restarted
enabled: true
- name: reload postgresql
command: /usr/bin/pg_ctlcluster {{ psql.version }} main reload

View File

@ -36,7 +36,7 @@
owner: postgres
group: postgres
notify:
- restart postgresql
- reload postgresql
- name: Master of configuration of postgresql {{ psql.version }}
template:
@ -49,5 +49,5 @@
- pg_hba.conf
- pg_ident.conf
notify:
- restart postgresql
- reload postgresql
when: 'not(psql.replica | default(False))'