Remove redundant conditional;Remove debugging;Fix module parameters;Fix var reference
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ede82ea7e7
commit
1c950086fa
@ -75,10 +75,6 @@
|
|||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
register: patch_result
|
register: patch_result
|
||||||
until:
|
until:
|
||||||
- patch_result.changed is defined
|
|
||||||
- patch_result.changed is true
|
- patch_result.changed is true
|
||||||
retries: "{{ playbook.retries }}"
|
retries: "{{ playbook.retries }}"
|
||||||
delay: "{{ playbook.delay.short }}"
|
delay: "{{ playbook.delay.short }}"
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: "{{ patch_result }}"
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
- name: Disable disk scheduling and evict replicas
|
- name: Disable disk scheduling and evict replicas
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
|
api_version: longhorn.io/v1beta2
|
||||||
|
kind: lhn
|
||||||
name: "{{ decom_nodename }}"
|
name: "{{ decom_nodename }}"
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
kind: nodes.longhorn.io
|
|
||||||
state: patched
|
state: patched
|
||||||
definition: |
|
definition: |
|
||||||
spec:
|
spec:
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
- name: Power off VM
|
- name: Power off VM
|
||||||
community.vmware.vmware_guest:
|
community.vmware.vmware_guest:
|
||||||
name: "{{ virtualmachine_details.hw_name }}"
|
name: "{{ virtualmachine_details.instance.hw_name }}"
|
||||||
folder: "{{ virtualmachine_details.hw_folder }}"
|
folder: "{{ virtualmachine_details.instance.hw_folder }}"
|
||||||
state: poweredoff
|
state: poweredoff
|
||||||
# state_change_timeout: "{{ playbook.delay.long }}"
|
# state_change_timeout: "{{ playbook.delay.long }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user