Ensure PVC daemons are updated before reboots

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:30 -04:00
parent f79d1da5be
commit 7a2d5ac0c4
2 changed files with 9 additions and 11 deletions

View File

@ -1,15 +1,13 @@
---
- include: update-pvc-daemons.yml
- hosts: all
remote_user: deploy
become: yes
become_user: root
gather_facts: yes
tasks:
- name: set PVC maintenance mode (legacy)
command: pvc maintenance on
run_once: yes
ignore_errors: yes
- name: set PVC maintenance mode
command: pvc cluster maintenance on
run_once: yes

View File

@ -43,7 +43,7 @@
- name: restart daemons cleanly
block:
- name: secondary node
command: 'pvc node secondary {{ ansible_hostname }}'
command: 'pvc node secondary --wait {{ ansible_hostname }}'
ignore_errors: true
- name: wait 15 seconds for system to stabilize