fix(ci): linting issues
This commit is contained in:
parent
5f0f242ab9
commit
8fb4c0be76
2 changed files with 12 additions and 9 deletions
|
|
@ -3,7 +3,8 @@
|
|||
# enter maintenance mode
|
||||
- name: "enter maintenance mode"
|
||||
ansible.builtin.shell:
|
||||
cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}"
|
||||
cmd:
|
||||
"sudo /usr/sbin/ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }}"
|
||||
changed_when: false
|
||||
failed_when: "maintenance_result.rc != 0"
|
||||
register: "maintenance_result"
|
||||
|
|
@ -11,10 +12,11 @@
|
|||
# wait for host to be empty
|
||||
- name: "wait for host to be empty"
|
||||
ansible.builtin.shell:
|
||||
cmd: "set -o pipefail; \
|
||||
sudo pvesh get /cluster/resources | \
|
||||
grep {{ inventory_hostname_short }} | \
|
||||
egrep -v \"node/pve|storage/pve|sdn/pve|template\""
|
||||
cmd:
|
||||
"set -o pipefail; \
|
||||
sudo pvesh get /cluster/resources | \
|
||||
grep {{ inventory_hostname_short }} | \
|
||||
egrep -v \"node/pve|storage/pve|sdn/pve|template\""
|
||||
changed_when: false
|
||||
delay: 10
|
||||
failed_when: "running_guests.rc >= 2"
|
||||
|
|
@ -51,7 +53,8 @@
|
|||
# exit maintenance mode
|
||||
- name: "exit maintenance mode"
|
||||
ansible.builtin.shell:
|
||||
cmd: "sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}"
|
||||
cmd:
|
||||
"sudo /usr/sbin/ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}"
|
||||
changed_when: false
|
||||
delay: 10
|
||||
failed_when: "maintenance_exit_result.rc != 0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue