Skip to content
Snippets Groups Projects
Verified Commit 91903136 authored by shirenn's avatar shirenn 🌊 Committed by ynerant
Browse files

[postgresql] dont restart postgres, only reload it

parent 57b72e53
No related branches found
No related tags found
1 merge request!254Cachan
......@@ -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 }
......
---
- 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))'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment