Skip to content

Commit

Permalink
Update ansible-lint to 5.4.0 (#8607) (#8608)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
tmurakam authored Mar 7, 2022
1 parent 3ccba08 commit 39acb2b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions roles/kubernetes/kubeadm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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:

Expand Down
1 change: 1 addition & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions roles/upgrade/pre-upgrade/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-2.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-2.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-2.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 39acb2b

Please sign in to comment.