Disable pvc-flush service while rebooting

Prevents the flush daemon from starting on node boot, before the
playbook is actually ready to unflush the node.
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:24 -04:00
parent cdc7e3377b
commit 750cb4b55c
1 changed files with 8 additions and 1 deletions

View File

@ -95,10 +95,11 @@
become: no
connection: local
- name: stop PVC flush daemon cleanly
- name: stop and disable PVC flush daemon cleanly
service:
name: "pvc-flush"
state: stopped
enabled: no
- name: stop PVC daemon cleanly
service:
@ -143,6 +144,12 @@
become: no
connection: local
- name: start and enable PVC flush daemon cleanly
service:
name: "pvc-flush"
state: started
enabled: yes
- name: reset any systemd failures
command: systemctl reset-failed
when: freshness.changed or kernelversion.changed