14 lines
677 B
YAML
14 lines
677 B
YAML
---
|
|
- name: 'Create timer for database backup'
|
|
include_role: name=infra-role-systemd-timer
|
|
vars:
|
|
systemd_timer_description: 'Dump High-Availability PostgreSQL database.'
|
|
systemd_timer_name: '{{ postgres_ha_backup_service_name }}'
|
|
systemd_timer_user: '{{ postgres_ha_backup_user }}'
|
|
systemd_timer_enabled: '{{ postgres_ha_backup_enabled }}'
|
|
systemd_timer_frequency: '{{ postgres_ha_backup_frequency }}'
|
|
systemd_timer_timeout_sec: '{{ postgres_ha_backup_timeout }}'
|
|
systemd_timer_script_path: '{{ postgres_ha_service_path }}/backup.sh'
|
|
systemd_timer_after_extra: 'docker.service'
|
|
systemd_timer_start_on_creation: false
|