2017-08-25 15:07:50 +08:00
|
|
|
---
|
|
|
|
- name: Flannel | Start Resources
|
|
|
|
kube:
|
2017-11-03 12:20:23 +08:00
|
|
|
name: "{{item.item.name}}"
|
2018-03-30 19:29:13 +08:00
|
|
|
namespace: "kube-system"
|
2017-11-03 12:20:23 +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"
|
2017-11-03 12:20:23 +08:00
|
|
|
with_items: "{{ flannel_node_manifests.results }}"
|
2018-10-17 06:33:30 +08:00
|
|
|
when: inventory_hostname == groups['kube-master'][0] and not item is skipped
|
2017-08-25 15:07:50 +08:00
|
|
|
|
|
|
|
- name: Flannel | Wait for flannel subnet.env file presence
|
|
|
|
wait_for:
|
|
|
|
path: /run/flannel/subnet.env
|
|
|
|
delay: 5
|
2017-09-05 13:23:12 +08:00
|
|
|
timeout: 600
|