Ensure PVC daemons are updated before reboots
This commit is contained in:
parent
bb4185af26
commit
f106bf25d4
|
@ -1,15 +1,13 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- include: update-pvc-daemons.yml
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: set PVC maintenance mode (legacy)
|
|
||||||
command: pvc maintenance on
|
|
||||||
run_once: yes
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode
|
||||||
command: pvc cluster maintenance on
|
command: pvc cluster maintenance on
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
- name: restart daemons cleanly
|
- name: restart daemons cleanly
|
||||||
block:
|
block:
|
||||||
- name: secondary node
|
- name: secondary node
|
||||||
command: 'pvc node secondary {{ ansible_hostname }}'
|
command: 'pvc node secondary --wait {{ ansible_hostname }}'
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: wait 15 seconds for system to stabilize
|
- name: wait 15 seconds for system to stabilize
|
||||||
|
|
Loading…
Reference in New Issue