mirror of
https://gitea.0xace.cc/ansible-galaxy/wal-g-pg.git
synced 2024-11-25 08:16:40 +00:00
16 lines
485 B
YAML
16 lines
485 B
YAML
|
- 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' if wal_g_backup_enable else 'no' }}"
|
||
|
masked: no
|
||
|
state: started
|
||
|
daemon_reload: yes
|
||
|
when: not backup_permanent_timer.changed
|