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