mirror of
https://gitea.0xace.cc/ansible-galaxy/wal-g-pg.git
synced 2024-11-25 00:06:40 +00:00
15 lines
420 B
YAML
15 lines
420 B
YAML
- name: Template systemd backup timer
|
|
template:
|
|
src: backup.timer.j2
|
|
dest: /etc/systemd/system/backup.timer
|
|
notify: Restart backup timer
|
|
register: backup_timer
|
|
|
|
- name: Enable and start systemd backup timer
|
|
systemd:
|
|
name: backup.timer
|
|
enabled: "{{ 'yes' if wal_g_backup_enable else 'no' }}"
|
|
masked: no
|
|
state: "{{ 'started' if wal_g_backup_enable else 'stopped' }}"
|
|
daemon_reload: yes
|