Update ansible-lint to 5.4.0 (#8607) (#8608)

* Update ansible-lint to 5.4.0 (#8607)

It seems that the Rich version 11.0.0 has a breaking change.
So need to update ansible-lint to 5.3.2 or later.

* Fix for ansible-lint no-changed-when rule (#8607)
This commit is contained in:
Takuya Murakami
2022-03-07 22:35:55 +09:00
committed by GitHub
parent 3ccba08983
commit 39acb2b84d
6 changed files with 8 additions and 3 deletions

View File

@@ -50,6 +50,7 @@
- name: Cordon node
command: "{{ kubectl }} cordon {{ kube_override_hostname|default(inventory_hostname) }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
changed_when: true
- name: Check kubectl version
command: "{{ kubectl }} version --client --short"
@@ -110,6 +111,7 @@
until: drain_fallback_result.rc == 0
retries: "{{ drain_fallback_retries }}"
delay: "{{ drain_fallback_retry_delay_seconds }}"
changed_when: drain_fallback_result.rc == 0
when:
- drain_nodes
- drain_fallback_enabled