wal-g/tasks/backup_permanent_job_timer.yaml

16 lines
485 B
YAML
Raw Normal View History

2023-02-07 23:18:19 +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
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_permanent_timer.changed