Skip to content
Snippets Groups Projects
Unverified Commit 39acb2b8 authored by Takuya Murakami's avatar Takuya Murakami Committed by GitHub
Browse files

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)
parent 3ccba089
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@
--ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests
--skip-phases={{ kubeadm_join_phases_skip | join(',') }}
register: kubeadm_join
changed_when: kubeadm_join is success
rescue:
......@@ -89,6 +90,7 @@
--ignore-preflight-errors=all
--skip-phases={{ kubeadm_join_phases_skip | join(',') }}
register: kubeadm_join
changed_when: kubeadm_join is success
always:
......
......@@ -148,6 +148,7 @@
- name: reset | force remove all cri pods (rescue)
shell: "ip netns list | cut -d' ' -f 1 | xargs -n1 ip netns delete && {{ bin_dir }}/crictl rmp -a -f"
ignore_errors: true # noqa ignore-errors
changed_when: true
- name: reset | stop etcd services
service:
......
......@@ -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
......
......@@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.0.11
ansible-lint==5.4.0
openshift==0.8.8
molecule==3.0.6
molecule-vagrant==0.3
......
......@@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.0.11
ansible-lint==5.4.0
openshift==0.8.8
molecule==3.0.6
molecule-vagrant==0.3
......
......@@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.0.11 ; python_version >= '3.0'
ansible-lint==5.4.0 ; python_version >= '3.0'
ansible-lint==4.2.0 ; python_version < '3.0'
openshift==0.8.8
molecule==3.0.6 ; python_version >= '3.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment