From 6eb384e083195e449135d008b5ae06f6cf93e890 Mon Sep 17 00:00:00 2001 From: Tobias Lehmann Date: Tue, 16 Apr 2024 15:08:19 +0200 Subject: [PATCH] create tasks for cron extension --- roles/common/tasks/postgres_cron.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/roles/common/tasks/postgres_cron.yml b/roles/common/tasks/postgres_cron.yml index 97227ce..deb89b5 100644 --- a/roles/common/tasks/postgres_cron.yml +++ b/roles/common/tasks/postgres_cron.yml @@ -1,4 +1,4 @@ -- name: "Install postgresql-{{ postgresql_version }}-cron" +- name: "Install pg_cron extension postgresql-{{ postgresql_version }}-cron" tags: - install - timescaledb_install @@ -49,7 +49,7 @@ name: postgresql state: started -- name: "Create cron extension {{ timescaledb_database_name }}" +- name: "Create pg_cron functions on database {{ timescaledb_database_name }}" tags: - install - timescaledb_install @@ -61,7 +61,7 @@ login_password: "{{ postgresql_admin_password }}" login_host: "{{ lxc_ip }}" -- name: "Grant privileges USAGE schema cron to the timescaledb user {{ timescaledb_database_user }}" +- name: "Grant privilege USAGE to schema cron for user {{ timescaledb_database_user }}" tags: - install - timescaledb_install @@ -73,12 +73,4 @@ role: "{{ timescaledb_database_user }}" login_user: "postgres" login_password: "{{ postgresql_admin_password }}" - login_host: "{{ lxc_ip }}" - -- name: "Restart postgresql service" - tags: - - install - - timescaledb_install - systemd: - name: postgresql - state: restarted \ No newline at end of file + login_host: "{{ lxc_ip }}" \ No newline at end of file