postgresql: add daemon-reload on data_dir change

This commit is contained in:
ace 2023-03-23 21:33:00 +03:00
parent 2e22041213
commit 41f598a238
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -17,3 +17,9 @@
[Service] [Service]
Environment=PGDATA={{ postgresql_data_dir }} Environment=PGDATA={{ postgresql_data_dir }}
notify: Restart PostgreSQL notify: Restart PostgreSQL
- name: Systemd daemon-reload
systemd:
name: "{{ postgresql_unit_name }}"
daemon_reload: yes