[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

View File

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

View File

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

View File

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