2017-09-04 16:29:51 +08:00
|
|
|
---
|
|
|
|
- name: Start Calico resources
|
|
|
|
kube:
|
|
|
|
name: "{{item.item.name}}"
|
|
|
|
namespace: "{{ system_namespace }}"
|
|
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
|
|
resource: "{{item.item.type}}"
|
|
|
|
filename: "{{kube_config_dir}}/{{item.item.file}}"
|
2017-09-05 13:23:12 +08:00
|
|
|
state: "latest"
|
2017-09-04 16:29:51 +08:00
|
|
|
with_items: "{{ calico_node_manifests.results }}"
|
2017-09-05 13:23:12 +08:00
|
|
|
when: inventory_hostname == groups['kube-master'][0] and not item|skipped
|