Ensure pvcapid is restarted after migrations

This commit is contained in:
Joshua Boniface 2024-08-20 09:23:37 -04:00
parent a54c730662
commit b395f47852
1 changed files with 8 additions and 1 deletions

View File

@ -125,7 +125,6 @@
service: service:
name: "{{ item }}" name: "{{ item }}"
state: restarted state: restarted
enabled: yes
with_items: with_items:
- pvcworkerd - pvcworkerd
- pvchealthd - pvchealthd
@ -138,6 +137,14 @@
command: /usr/share/pvc/pvc-api-db-upgrade command: /usr/share/pvc/pvc-api-db-upgrade
run_once: yes run_once: yes
- name: restart API daemon to apply database migrations
service:
name: "{{ item }}"
state: restarted
with_items:
- pvcapid
run_once: yes
- name: unset PVC maintenance mode on first node - name: unset PVC maintenance mode on first node
command: pvc cluster maintenance off command: pvc cluster maintenance off
run_once: yes run_once: yes