diff --git a/roles/common/tasks/postgres_cron.yml b/roles/common/tasks/postgres_cron.yml index 97227ce..deb89b5 100644 --- a/roles/common/tasks/postgres_cron.yml +++ b/roles/common/tasks/postgres_cron.yml @@ -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 @@ -73,12 +73,4 @@ role: "{{ timescaledb_database_user }}" 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 \ No newline at end of file + login_host: "{{ lxc_ip }}" \ No newline at end of file