create tasks for cron extension

This commit is contained in:
Tobias Lehmann 2024-04-16 14:42:28 +02:00
parent ec79c2d26e
commit 2d3d286272

View File

@ -61,6 +61,20 @@
login_password: "{{ postgresql_admin_password }}" login_password: "{{ postgresql_admin_password }}"
login_host: "{{ lxc_ip }}" 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" - name: "Restart postgresql service"
tags: tags:
- install - install