[postgresql] dont restart postgres, only reload it
parent
57b72e53cc
commit
9190313690
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))'
|
||||
|
|
Loading…
Reference in New Issue