2022-11-24 19:45:42 +00:00
|
|
|
---
|
|
|
|
- name: 'Create timer for database backup'
|
2023-11-23 11:50:00 +00:00
|
|
|
include_role: name=infra-role-systemd-timer
|
2022-11-24 19:45:42 +00:00
|
|
|
vars:
|
2022-12-06 16:59:50 +00:00
|
|
|
systemd_timer_description: 'Dump High-Availability PostgreSQL database.'
|
2023-11-22 11:22:50 +00:00
|
|
|
systemd_timer_name: '{{ postgres_ha_backup_service_name }}'
|
|
|
|
systemd_timer_user: '{{ postgres_ha_backup_user }}'
|
2023-12-06 10:48:36 +00:00
|
|
|
systemd_timer_enabled: '{{ postgres_ha_backup_enabled }}'
|
2023-11-22 11:22:50 +00:00
|
|
|
systemd_timer_frequency: '{{ postgres_ha_backup_frequency }}'
|
2022-11-24 19:45:42 +00:00
|
|
|
systemd_timer_timeout_sec: '{{ postgres_ha_backup_timeout }}'
|
2023-11-24 15:56:22 +00:00
|
|
|
systemd_timer_script_path: '{{ postgres_ha_service_path }}/backup.sh'
|
2022-11-24 19:45:42 +00:00
|
|
|
systemd_timer_after_extra: 'docker.service'
|
|
|
|
systemd_timer_start_on_creation: false
|