[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:
|
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 }
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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))'
|
||||||
|
|
Loading…
Reference in New Issue