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:
|
tags:
|
||||||
- install
|
- install
|
||||||
- timescaledb_install
|
- timescaledb_install
|
||||||
@ -49,7 +49,7 @@
|
|||||||
name: postgresql
|
name: postgresql
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: "Create cron extension {{ timescaledb_database_name }}"
|
- name: "Create pg_cron functions on database {{ timescaledb_database_name }}"
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- timescaledb_install
|
- timescaledb_install
|
||||||
@ -61,7 +61,7 @@
|
|||||||
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 }}"
|
- name: "Grant privilege USAGE to schema cron for user {{ timescaledb_database_user }}"
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- timescaledb_install
|
- timescaledb_install
|
||||||
@ -73,12 +73,4 @@
|
|||||||
role: "{{ timescaledb_database_user }}"
|
role: "{{ timescaledb_database_user }}"
|
||||||
login_user: "postgres"
|
login_user: "postgres"
|
||||||
login_password: "{{ postgresql_admin_password }}"
|
login_password: "{{ postgresql_admin_password }}"
|
||||||
login_host: "{{ lxc_ip }}"
|
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