From bcc449f5f3584eed086ccdb4ba89672331d9a71b Mon Sep 17 00:00:00 2001 From: Tobias Lehmann Date: Tue, 16 Apr 2024 14:12:32 +0200 Subject: [PATCH] create tasks for cron extension --- roles/common/tasks/postgres_cron.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/common/tasks/postgres_cron.yml b/roles/common/tasks/postgres_cron.yml index 6dd21f5..1d5a4a6 100644 --- a/roles/common/tasks/postgres_cron.yml +++ b/roles/common/tasks/postgres_cron.yml @@ -14,7 +14,7 @@ - timescaledb_install systemd: name: postgresql - state: stop + state: stopped - name: "Add pg_cron to shared_preload_libraries" tags: @@ -41,13 +41,13 @@ dest: /etc/postgresql/{{ postgresql_version }}/main/postgresql.conf line: "cron.timezone = 'Europe/Berlin'" -- name: "Restart postgresql service" +- name: "Start postgresql service" tags: - install - timescaledb_install systemd: name: postgresql - state: restarted + state: started - name: "Configure pg_cron extension" tags: