create tasks for cron extension
This commit is contained in:
parent
2d3d286272
commit
6eb384e083
@ -1,4 +1,4 @@
|
||||
- name: "Install postgresql-{{ postgresql_version }}-cron"
|
||||
- name: "Install pg_cron extension postgresql-{{ postgresql_version }}-cron"
|
||||
tags:
|
||||
- install
|
||||
- timescaledb_install
|
||||
@ -49,7 +49,7 @@
|
||||
name: postgresql
|
||||
state: started
|
||||
|
||||
- name: "Create cron extension {{ timescaledb_database_name }}"
|
||||
- name: "Create pg_cron functions on database {{ timescaledb_database_name }}"
|
||||
tags:
|
||||
- install
|
||||
- timescaledb_install
|
||||
@ -61,7 +61,7 @@
|
||||
login_password: "{{ postgresql_admin_password }}"
|
||||
login_host: "{{ lxc_ip }}"
|
||||
|
||||
- name: "Grant privileges USAGE schema cron to the timescaledb user {{ timescaledb_database_user }}"
|
||||
- name: "Grant privilege USAGE to schema cron for user {{ timescaledb_database_user }}"
|
||||
tags:
|
||||
- install
|
||||
- timescaledb_install
|
||||
@ -74,11 +74,3 @@
|
||||
login_user: "postgres"
|
||||
login_password: "{{ postgresql_admin_password }}"
|
||||
login_host: "{{ lxc_ip }}"
|
||||
|
||||
- name: "Restart postgresql service"
|
||||
tags:
|
||||
- install
|
||||
- timescaledb_install
|
||||
systemd:
|
||||
name: postgresql
|
||||
state: restarted
|
||||
Loading…
Reference in New Issue
Block a user