From 2d3d286272f6b2c3208ed048238a945ad9da6eb6 Mon Sep 17 00:00:00 2001 From: Tobias Lehmann Date: Tue, 16 Apr 2024 14:42:28 +0200 Subject: [PATCH] create tasks for cron extension --- roles/common/tasks/postgres_cron.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/common/tasks/postgres_cron.yml b/roles/common/tasks/postgres_cron.yml index 2139164..97227ce 100644 --- a/roles/common/tasks/postgres_cron.yml +++ b/roles/common/tasks/postgres_cron.yml @@ -61,6 +61,20 @@ login_password: "{{ postgresql_admin_password }}" login_host: "{{ lxc_ip }}" +- name: "Grant privileges USAGE schema cron to the timescaledb user {{ timescaledb_database_user }}" + tags: + - install + - timescaledb_install + postgresql_privs: + db: "{{ timescaledb_database_name }}" + privs: USAGE + type: schema + obj: "cron" + role: "{{ timescaledb_database_user }}" + login_user: "postgres" + login_password: "{{ postgresql_admin_password }}" + login_host: "{{ lxc_ip }}" + - name: "Restart postgresql service" tags: - install