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
|
2024-07-24 09:23:40 +00:00
|
|
|
enabled: "{{ 'yes' if wal_g_backup_enable else 'no' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
masked : no
|
2024-07-30 18:51:02 +00:00
|
|
|
state: "{{ 'started' if wal_g_backup_enable else 'stopped' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
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
|
2024-07-24 09:23:40 +00:00
|
|
|
enabled: "{{ 'yes' if wal_g_backup_retention_enable else 'no' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
masked : no
|
2024-07-24 09:23:40 +00:00
|
|
|
state: "{{ 'started' if wal_g_backup_retention_enable else 'stopped' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
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
|
2024-07-24 09:23:40 +00:00
|
|
|
enabled: "{{ 'yes' if wal_g_backup_permanent_enable else 'no' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
masked : no
|
2024-07-24 09:23:40 +00:00
|
|
|
state: "{{ 'started' if wal_g_backup_permanent_enable else 'stopped' }}"
|
2024-05-15 12:52:33 +00:00
|
|
|
daemon_reload: yes
|
|
|
|
when: backup_permanent_timer.changed
|