wal-g/tasks/backup_permanent_job_timer.yaml

16 lines
442 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
enabled: yes
masked: no
state: started
daemon_reload: yes
when: not backup_permanent_timer.changed