2017-09-04 16:29:51 +08:00
|
|
|
---
|
|
|
|
- name: Start Calico resources
|
|
|
|
kube:
|
|
|
|
name: "{{item.item.name}}"
|
2018-03-30 19:29:13 +08:00
|
|
|
namespace: "kube-system"
|
2017-09-04 16:29:51 +08:00
|
|
|
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"
|
2018-08-23 22:17:18 +08:00
|
|
|
with_items:
|
|
|
|
- "{{ calico_node_manifests.results }}"
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][0] and not item|skipped
|
|
|
|
|
|
|
|
- name: "calico upgrade complete"
|
|
|
|
shell: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|
2018-09-06 20:49:06 +08:00
|
|
|
- calico_upgrade_enabled|default(True)
|
2018-08-23 22:17:18 +08:00
|
|
|
- calico_upgrade_needed|default(False)
|