fix systemd timers

This commit is contained in:
ace 2024-07-24 12:23:40 +03:00
parent 4ae6dc8311
commit 981d4ce788
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -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