2016-02-10 00:16:16 +08:00
|
|
|
---
|
2018-01-24 16:43:06 +08:00
|
|
|
|
2018-12-03 18:22:17 +08:00
|
|
|
- name: Weave | Set cni directory permissions
|
|
|
|
file:
|
|
|
|
path: /opt/cni/bin
|
|
|
|
state: directory
|
|
|
|
owner: kube
|
|
|
|
recurse: true
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Weave | Copy cni plugins
|
|
|
|
unarchive:
|
|
|
|
src: "{{ local_release_dir }}/cni-plugins-{{ image_arch }}-{{ cni_version }}.tgz"
|
|
|
|
dest: "/opt/cni/bin"
|
|
|
|
mode: 0755
|
|
|
|
remote_src: yes
|
2016-09-26 17:02:19 +08:00
|
|
|
|
2018-07-22 08:14:38 +08:00
|
|
|
- name: Weave | Create manifest
|
2016-02-10 00:16:16 +08:00
|
|
|
template:
|
2017-01-31 23:47:27 +08:00
|
|
|
src: weave-net.yml.j2
|
|
|
|
dest: "{{ kube_config_dir }}/weave-net.yml"
|
2018-07-22 08:14:38 +08:00
|
|
|
|
|
|
|
- name: Weave | Fix nodePort for Weave
|
|
|
|
template:
|
2018-11-15 15:38:51 +08:00
|
|
|
src: 10-weave.conflist.j2
|
|
|
|
dest: /etc/cni/net.d/10-weave.conflist
|