reload systemd after change
This commit is contained in:
parent
a0c2fa0306
commit
682d293d45
@ -14,12 +14,18 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
|
|
||||||
- name: Setup custom systemd unit
|
- name: Setup custom systemd service
|
||||||
template:
|
template:
|
||||||
src: etc/systemd/system/postgresql.service.j2
|
src: etc/systemd/system/postgresql.service.j2
|
||||||
dest: "/etc/systemd/system/{{ __postgres_daemon }}.service"
|
dest: "/etc/systemd/system/{{ __postgres_daemon }}.service"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: __postgres_restart
|
notify: __postgres_restart
|
||||||
|
register: __postgres_systemd
|
||||||
|
|
||||||
|
- name: just force systemd to reread configs (2.4 and above)
|
||||||
|
systemd:
|
||||||
|
daemon_reload: True
|
||||||
|
when: __postgres_systemd.changed
|
||||||
|
|
||||||
- name: Check if database is initialized
|
- name: Check if database is initialized
|
||||||
stat:
|
stat:
|
||||||
|
Loading…
Reference in New Issue
Block a user