From 6e2b8a575083fb041fe78f477d2ccddbb4fabf5e Mon Sep 17 00:00:00 2001 From: Florian Ruynat Date: Fri, 21 Aug 2020 09:13:51 +0200 Subject: [PATCH] Add timeout to Get current version of calico cluster version, again (#6493) --- roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 2 ++ roles/network_plugin/calico/tasks/check.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index 148d69258..0bdc22010 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -163,6 +163,8 @@ args: executable: /bin/bash register: calico_version_on_server + async: 10 + poll: 3 run_once: yes changed_when: false failed_when: false diff --git a/roles/network_plugin/calico/tasks/check.yml b/roles/network_plugin/calico/tasks/check.yml index dc92912fc..9216231a4 100644 --- a/roles/network_plugin/calico/tasks/check.yml +++ b/roles/network_plugin/calico/tasks/check.yml @@ -40,6 +40,8 @@ - name: "Get current version of calico cluster version" # noqa 306 shell: "{{ bin_dir }}/calicoctl.sh version | grep 'Cluster Version:' | awk '{ print $3}'" register: calico_version_on_server + async: 10 + poll: 3 run_once: yes changed_when: false