wal-g-pg/tasks/backup_permanent_job_timer.yaml

15 lines
510 B
YAML
Raw Normal View History

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