2015-10-03 20:19:50 +00:00
|
|
|
---
|
2021-12-24 07:16:15 +00:00
|
|
|
- name: runc | Download flannel binary
|
|
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.flannel_cni) }}"
|
|
|
|
|
|
|
|
- name: Copy flannel binary from download dir
|
|
|
|
copy:
|
|
|
|
src: "{{ downloads.flannel_cni.dest }}"
|
|
|
|
dest: "/opt/cni/bin/flannel"
|
|
|
|
mode: 0755
|
|
|
|
remote_src: true
|
|
|
|
|
2017-11-03 04:20:23 +00:00
|
|
|
- name: Flannel | Create Flannel manifests
|
2017-08-25 07:07:50 +00:00
|
|
|
template:
|
2019-05-02 21:24:21 +00:00
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
2022-01-09 09:51:12 +00:00
|
|
|
mode: 0644
|
2017-11-03 04:20:23 +00:00
|
|
|
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:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|