Ensure schema updates are run after upgrade

This commit is contained in:
Joshua Boniface 2024-08-29 02:57:12 -04:00
parent f85136ed62
commit ce82f72241
1 changed files with 11 additions and 0 deletions

View File

@ -512,6 +512,17 @@
name: patroni
state: started
masked: no
- name: wait 15 seconds for system to stabilize
pause:
seconds: 15
become: no
connection: local
- name: apply schema updates
shell: /usr/share/pvc/pvc-api-db-upgrade
ignore_errors: yes
run_once: yes
delegate_to: "{{ patroni_leader }}"