create tasks for cron extension
This commit is contained in:
parent
9f6ea29148
commit
af7a3a548d
@ -41,10 +41,14 @@
|
|||||||
name: postgresql
|
name: postgresql
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- postgresql_query:
|
- name: "Configure pg_cron extension"
|
||||||
db: {{ timescaledb_database_name }}
|
tags:
|
||||||
login_user: postgres
|
- install
|
||||||
login_password: {{ postgresql_admin_password }}
|
- timescaledb_install
|
||||||
|
postgresql_query:
|
||||||
|
db: "{{ timescaledb_database_name }}"
|
||||||
|
login_user: "postgres"
|
||||||
|
login_password: "{{ postgresql_admin_password }}"
|
||||||
query:
|
query:
|
||||||
- CREATE EXTENSION pg_cron;
|
- CREATE EXTENSION pg_cron;
|
||||||
- GRANT USAGE ON SCHEMA cron TO {{ timescaledb_database_user }};
|
- GRANT USAGE ON SCHEMA cron TO {{ timescaledb_database_user }};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user