mirror of
https://gitea.0xace.cc/ansible-galaxy/wal-g-pg.git
synced 2024-11-25 00:06:40 +00:00
fix systemd timers
This commit is contained in:
parent
4ae6dc8311
commit
981d4ce788
@ -9,9 +9,9 @@
|
||||
- name: Restart backup timer
|
||||
systemd:
|
||||
name: backup.timer
|
||||
enabled: yes
|
||||
enabled: "{{ 'yes' if wal_g_backup_enable else 'no' }}"
|
||||
masked : no
|
||||
state: started
|
||||
state: "{{ 'started' if wal_g_backup_permanent_enable else 'stopped' }}"
|
||||
daemon_reload: yes
|
||||
when: backup_timer.changed
|
||||
|
||||
@ -26,9 +26,9 @@
|
||||
- name: Restart backup retention timer
|
||||
systemd:
|
||||
name: backup-retention.timer
|
||||
enabled: yes
|
||||
enabled: "{{ 'yes' if wal_g_backup_retention_enable else 'no' }}"
|
||||
masked : no
|
||||
state: started
|
||||
state: "{{ 'started' if wal_g_backup_retention_enable else 'stopped' }}"
|
||||
daemon_reload: yes
|
||||
when: backup_retention_timer.changed
|
||||
|
||||
@ -43,8 +43,8 @@
|
||||
- name: Restart backup permanent timer
|
||||
systemd:
|
||||
name: backup-permanent.timer
|
||||
enabled: yes
|
||||
enabled: "{{ 'yes' if wal_g_backup_permanent_enable else 'no' }}"
|
||||
masked : no
|
||||
state: started
|
||||
state: "{{ 'started' if wal_g_backup_permanent_enable else 'stopped' }}"
|
||||
daemon_reload: yes
|
||||
when: backup_permanent_timer.changed
|
||||
|
Loading…
Reference in New Issue
Block a user