From 55d76ea3d815d0548f1555b5ff3736cf3d5326b8 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Thu, 13 Sep 2018 12:04:53 +0300 Subject: [PATCH] Update install.yml --- roles/network_plugin/calico/tasks/install.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index 2da09a9aa..294b09d3b 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -101,7 +101,7 @@ run_once: true delegate_to: "{{ groups['kube-master'][0] }}" when: - - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') + - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') - 'calico_conf.stdout == "0"' - name: Calico | Configure calico network pool (legacy) @@ -180,7 +180,7 @@ with_items: - "{{ peers|default([]) }}" when: - - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') + - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') - peer_with_router|default(false) - inventory_hostname in groups['k8s-cluster'] @@ -221,7 +221,7 @@ with_items: - "{{ groups['calico-rr'] | default([]) }}" when: - - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') + - calico_upgrade_enabled or calico_version_on_server.stdout|version_compare('v3.0.0', '>') - peer_with_calico_rr|default(false) - inventory_hostname in groups['k8s-cluster'] - hostvars[item]['cluster_id'] == cluster_id