diff --git a/roles/kubernetes/kubeadm/tasks/main.yml b/roles/kubernetes/kubeadm/tasks/main.yml index 600e0dc7b7b90ba51dee114ac3544767c7adb45f..15a20cbd7182269f90f1a72d386867f57adca85a 100644 --- a/roles/kubernetes/kubeadm/tasks/main.yml +++ b/roles/kubernetes/kubeadm/tasks/main.yml @@ -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: diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index 7122744f00631085f976265ecbec69840ba37e3e..c0963815ed8f602d121980cd697f0e95960899a4 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -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: diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index 9aad57e0e27357d13bbdf5e957b83a023dea6bbc..d41f0fa24e9f753f3b3c2d924a5cf02f295b2baf 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -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 diff --git a/tests/requirements-2.10.txt b/tests/requirements-2.10.txt index e139e1fa6b1ff59bd77cf8eafb452dfc5b2bb1c1..03f0aa0fa5eabc02b9c53f3e4d06a1b2e22536a5 100644 --- a/tests/requirements-2.10.txt +++ b/tests/requirements-2.10.txt @@ -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 diff --git a/tests/requirements-2.11.txt b/tests/requirements-2.11.txt index b58e0f2c13584b78fcbb2b5e4b2b8ffbf987abe9..a652be39eb8ab00b9b13c7ae3658071cd0e73d6e 100644 --- a/tests/requirements-2.11.txt +++ b/tests/requirements-2.11.txt @@ -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 diff --git a/tests/requirements-2.9.txt b/tests/requirements-2.9.txt index 9ae13b5b261f835f316aa7794d7aba4f6e1d58e9..dff1f6612a8ee5a740a1476fd7145aa7b837b889 100644 --- a/tests/requirements-2.9.txt +++ b/tests/requirements-2.9.txt @@ -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'