From 38bf87f9b167a1b3f571534ad7021260e5cd6205 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 21 Nov 2023 15:44:29 +0100 Subject: [PATCH] Restart after the load of the timescaledb library. --- tasks/timescale_db_deb.yml | 3 +++ tasks/timescale_db_el.yml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/timescale_db_deb.yml b/tasks/timescale_db_deb.yml index 41488bd..3011507 100644 --- a/tasks/timescale_db_deb.yml +++ b/tasks/timescale_db_deb.yml @@ -40,6 +40,9 @@ line: "shared_preload_libraries = 'timescaledb'" create: false state: present + notify: Restart postgresql + - name: timescale_db_deb | TimeScaleDB configuration flush handlers + ansible.builtin.meta: flush_handlers - name: timescale_db_deb | PostgreSQL settings for TimeScaleDB become: true become_user: postgres diff --git a/tasks/timescale_db_el.yml b/tasks/timescale_db_el.yml index a9590e0..a84594a 100644 --- a/tasks/timescale_db_el.yml +++ b/tasks/timescale_db_el.yml @@ -27,7 +27,9 @@ line: "shared_preload_libraries = 'timescaledb'" create: false state: present - + notify: Restart postgresql + - name: timescale_db_el | TimeScaleDB configuration flush handlers + ansible.builtin.meta: flush_handlers - name: timescale_db_el | TimeScaleDB setting for postgresql on EL become: true become_user: postgres