change Start Calico resources

In daemonset, we don't need loop over each node to run this.
This commit is contained in:
ArthurMa 2017-09-04 18:25:14 +08:00 committed by GitHub
parent fc7905653e
commit 17a91c2baf

View file

@ -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] }}"