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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 3 deletions

View file

@ -78,6 +78,7 @@
--ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests
--skip-phases={{ kubeadm_join_phases_skip | join(',') }} --skip-phases={{ kubeadm_join_phases_skip | join(',') }}
register: kubeadm_join register: kubeadm_join
changed_when: kubeadm_join is success
rescue: rescue:
@ -89,6 +90,7 @@
--ignore-preflight-errors=all --ignore-preflight-errors=all
--skip-phases={{ kubeadm_join_phases_skip | join(',') }} --skip-phases={{ kubeadm_join_phases_skip | join(',') }}
register: kubeadm_join register: kubeadm_join
changed_when: kubeadm_join is success
always: always:

View file

@ -148,6 +148,7 @@
- name: reset | force remove all cri pods (rescue) - 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" 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 ignore_errors: true # noqa ignore-errors
changed_when: true
- name: reset | stop etcd services - name: reset | stop etcd services
service: service:

View file

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

View file

@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1 tox==3.11.1
dopy==0.3.7 dopy==0.3.7
cryptography==2.8 cryptography==2.8
ansible-lint==5.0.11 ansible-lint==5.4.0
openshift==0.8.8 openshift==0.8.8
molecule==3.0.6 molecule==3.0.6
molecule-vagrant==0.3 molecule-vagrant==0.3

View file

@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1 tox==3.11.1
dopy==0.3.7 dopy==0.3.7
cryptography==2.8 cryptography==2.8
ansible-lint==5.0.11 ansible-lint==5.4.0
openshift==0.8.8 openshift==0.8.8
molecule==3.0.6 molecule==3.0.6
molecule-vagrant==0.3 molecule-vagrant==0.3

View file

@ -4,7 +4,7 @@ apache-libcloud==2.2.1
tox==3.11.1 tox==3.11.1
dopy==0.3.7 dopy==0.3.7
cryptography==2.8 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' ansible-lint==4.2.0 ; python_version < '3.0'
openshift==0.8.8 openshift==0.8.8
molecule==3.0.6 ; python_version >= '3.0' molecule==3.0.6 ; python_version >= '3.0'