wal-g-pg/tasks/backup_job_timer.yaml

15 lines
420 B
YAML
Raw Normal View History

2024-05-15 12:52:33 +00:00
- name: Template systemd backup timer
template:
src: backup.timer.j2
dest: /etc/systemd/system/backup.timer
notify: Restart backup timer
register: backup_timer
- name: Enable and start systemd backup timer
systemd:
name: backup.timer
enabled: "{{ 'yes' if wal_g_backup_enable else 'no' }}"
masked: no
2024-05-26 14:59:12 +00:00
state: "{{ 'started' if wal_g_backup_enable else 'stopped' }}"
2024-05-15 12:52:33 +00:00
daemon_reload: yes