From 17a91c2baf1dd9adbf5c28c6974c80c66974eb98 Mon Sep 17 00:00:00 2001 From: ArthurMa <4406arthur@gmail.com> Date: Mon, 4 Sep 2017 18:25:14 +0800 Subject: [PATCH] change Start Calico resources In daemonset, we don't need loop over each node to run this. --- roles/kubernetes-apps/network_plugin/calico/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/network_plugin/calico/tasks/main.yml b/roles/kubernetes-apps/network_plugin/calico/tasks/main.yml index 5061c5c98..bb3a502a7 100644 --- a/roles/kubernetes-apps/network_plugin/calico/tasks/main.yml +++ b/roles/kubernetes-apps/network_plugin/calico/tasks/main.yml @@ -7,4 +7,4 @@ resource: "{{item.item.type}}" filename: "{{kube_config_dir}}/{{item.item.file}}" state: "{{item.changed | ternary('latest','present') }}" - with_items: "{{ calico_node_manifests.results }}" + with_items: "{{ calico_node_manifests.results[0] }}"