wal-g-pg/handlers/main.yaml

51 lines
1.1 KiB
YAML
Raw Normal View History

2024-05-15 12:52:33 +00:00
- name: Daemon reload backup service
systemd:
name: backup.service
enabled: no
masked : no
daemon_reload: yes
when: backup_service.changed
- name: Restart backup timer
systemd:
name: backup.timer
enabled: yes
masked : no
state: started
daemon_reload: yes
when: backup_timer.changed
- name: Daemon reload backup retention service
systemd:
name: backup-retention.service
enabled: no
masked : no
daemon_reload: yes
when: backup_retention_service.changed
- name: Restart backup retention timer
systemd:
name: backup-retention.timer
enabled: yes
masked : no
state: started
daemon_reload: yes
when: backup_retention_timer.changed
- name: Daemon reload backup permanent service
systemd:
name: backup-permanent.service
enabled: no
masked : no
daemon_reload: yes
when: backup_permanent_service.changed
- name: Restart backup permanent timer
systemd:
name: backup-permanent.timer
enabled: yes
masked : no
state: started
daemon_reload: yes
when: backup_permanent_timer.changed