2015-10-03 20:19:50 +00:00
|
|
|
---
|
2017-08-25 07:07:50 +00:00
|
|
|
- include: pre-upgrade.yml
|
2016-05-09 04:42:42 +00:00
|
|
|
|
2017-11-03 04:20:23 +00:00
|
|
|
- name: Flannel | Create Flannel manifests
|
2017-08-25 07:07:50 +00:00
|
|
|
template:
|
2017-11-03 04:20:23 +00:00
|
|
|
src: "{{item.file}}.j2"
|
|
|
|
dest: "{{kube_config_dir}}/{{item.file}}"
|
|
|
|
with_items:
|
|
|
|
- {name: flannel, file: cni-flannel-rbac.yml, type: sa}
|
|
|
|
- {name: kube-flannel, file: cni-flannel.yml, type: ds}
|
|
|
|
register: flannel_node_manifests
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups['kube-master']
|
|
|
|
- rbac_enabled or item.type not in rbac_resources
|