create tasks for cron extension

This commit is contained in:
Tobias Lehmann 2024-04-16 14:25:57 +02:00
parent 18c52be28a
commit ec79c2d26e

View File

@ -49,17 +49,17 @@
name: postgresql name: postgresql
state: started state: started
- name: "Configure pg_cron extension" - name: "Create cron extension {{ timescaledb_database_name }}"
tags: tags:
- install - install
- timescaledb_install - timescaledb_install
postgresql_query: postgresql_ext:
name: pg_cron
db: "{{ timescaledb_database_name }}" db: "{{ timescaledb_database_name }}"
login_user: "{{ postgres }}" state: present
login_user: "postgres"
login_password: "{{ postgresql_admin_password }}" login_password: "{{ postgresql_admin_password }}"
login_host: "{{ lxc_ip }}" login_host: "{{ lxc_ip }}"
query:
- CREATE EXTENSION pg_cron;
- name: "Restart postgresql service" - name: "Restart postgresql service"
tags: tags: