wal-g/tasks/backup_retention_job_timer.yaml

16 lines
485 B
YAML
Raw Normal View History

2023-02-07 23:18:19 +00:00
- name: Template systemd backup retention timer
template:
src: backup-retention.timer.j2
dest: /etc/systemd/system/backup-retention.timer
notify: Restart backup retention timer
register: backup_retention_timer
- name: Enable and start systemd backup retention timer
systemd:
name: backup-retention.timer
2023-07-03 21:02:28 +00:00
enabled: "{{ 'yes' if wal_g_backup_enable else 'no' }}"
2023-02-07 23:18:19 +00:00
masked: no
state: started
daemon_reload: yes
when: not backup_retention_timer.changed