Move to new maintenance mode and check legacy first
This commit is contained in:
parent
b0a74b0053
commit
e1d081a417
|
@ -5,9 +5,15 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode (legacy)
|
||||||
command: pvc maintenance on
|
command: pvc maintenance on
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: set PVC maintenance mode
|
||||||
|
command: pvc cluster maintenance on
|
||||||
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
|
@ -160,5 +166,5 @@
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -5,9 +5,15 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode (legacy)
|
||||||
command: pvc maintenance on
|
command: pvc maintenance on
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: set PVC maintenance mode
|
||||||
|
command: pvc cluster maintenance on
|
||||||
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
|
@ -216,5 +222,5 @@
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -5,9 +5,15 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode (legacy)
|
||||||
command: pvc maintenance on
|
command: pvc maintenance on
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: set PVC maintenance mode
|
||||||
|
command: pvc cluster maintenance on
|
||||||
|
run_once: yes
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
|
@ -89,5 +95,5 @@
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc maintenance off
|
command: pvc cluster maintenance off
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
serial: 1
|
serial: 1
|
||||||
tasks:
|
tasks:
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode
|
||||||
command: pvc maintenance on
|
command: pvc cluster maintenance on
|
||||||
|
|
||||||
- name: secondary node
|
- name: secondary node
|
||||||
command: "pvc node secondary {{ ansible_hostname }}"
|
command: "pvc node secondary {{ ansible_hostname }}"
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc maintenance off
|
command: pvc cluster maintenance off
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
when: ansible_lsb.codename is defined
|
when: ansible_lsb.codename is defined
|
||||||
|
|
||||||
- name: set PVC maintenance mode
|
- name: set PVC maintenance mode
|
||||||
command: pvc maintenance on
|
command: pvc cluster maintenance on
|
||||||
|
|
||||||
- name: secondary node
|
- name: secondary node
|
||||||
command: "pvc node secondary {{ ansible_hostname }}"
|
command: "pvc node secondary {{ ansible_hostname }}"
|
||||||
|
@ -240,7 +240,7 @@
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: unset PVC maintenance mode
|
- name: unset PVC maintenance mode
|
||||||
command: pvc maintenance off
|
command: pvc cluster maintenance off
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
|
|
Loading…
Reference in New Issue