From 41f598a238ffedc58a48f2628b43e69c37ba051c Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 23 Mar 2023 21:33:00 +0300 Subject: [PATCH] postgresql: add daemon-reload on data_dir change --- tasks/RedHat/data_dir.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/RedHat/data_dir.yaml b/tasks/RedHat/data_dir.yaml index b049e2e..9316976 100644 --- a/tasks/RedHat/data_dir.yaml +++ b/tasks/RedHat/data_dir.yaml @@ -17,3 +17,9 @@ [Service] Environment=PGDATA={{ postgresql_data_dir }} notify: Restart PostgreSQL + +- name: Systemd daemon-reload + systemd: + name: "{{ postgresql_unit_name }}" + daemon_reload: yes +