Ignore errors during flush commands
These might inexplicably fail, but that is fine.
This commit is contained in:
parent
e009cf4076
commit
94e9bf9133
|
@ -67,6 +67,7 @@
|
||||||
|
|
||||||
- name: flush node
|
- name: flush node
|
||||||
command: "pvc node flush {{ ansible_hostname }} --wait"
|
command: "pvc node flush {{ ansible_hostname }} --wait"
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: make sure node is in flushed state
|
- name: make sure node is in flushed state
|
||||||
shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'"
|
shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'"
|
||||||
|
@ -172,6 +173,7 @@
|
||||||
|
|
||||||
- name: unflush node
|
- name: unflush node
|
||||||
command: "pvc node ready {{ ansible_hostname }} --wait"
|
command: "pvc node ready {{ ansible_hostname }} --wait"
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: make sure all VMs have returned
|
- name: make sure all VMs have returned
|
||||||
shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'"
|
shell: "pvc node info {{ ansible_hostname }} | grep '^Domain State' | awk '{ print $NF }'"
|
||||||
|
|
Loading…
Reference in New Issue