create tasks for cron extension

This commit is contained in:
Tobias Lehmann 2024-04-16 14:12:32 +02:00
parent 2886fc012f
commit bcc449f5f3

View File

@ -14,7 +14,7 @@
- timescaledb_install - timescaledb_install
systemd: systemd:
name: postgresql name: postgresql
state: stop state: stopped
- name: "Add pg_cron to shared_preload_libraries" - name: "Add pg_cron to shared_preload_libraries"
tags: tags:
@ -41,13 +41,13 @@
dest: /etc/postgresql/{{ postgresql_version }}/main/postgresql.conf dest: /etc/postgresql/{{ postgresql_version }}/main/postgresql.conf
line: "cron.timezone = 'Europe/Berlin'" line: "cron.timezone = 'Europe/Berlin'"
- name: "Restart postgresql service" - name: "Start postgresql service"
tags: tags:
- install - install
- timescaledb_install - timescaledb_install
systemd: systemd:
name: postgresql name: postgresql
state: restarted state: started
- name: "Configure pg_cron extension" - name: "Configure pg_cron extension"
tags: tags: