c12s-kubespray/roles/network_plugin/weave/tasks/main.yml

27 lines
589 B
YAML
Raw Permalink Normal View History

2016-02-09 16:16:16 +00:00
---
2018-01-24 08:43:06 +00: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
- name: Weave | Create manifest
2016-02-09 16:16:16 +00:00
template:
src: weave-net.yml.j2
dest: "{{ kube_config_dir }}/weave-net.yml"
- name: Weave | Fix nodePort for Weave
template:
src: 10-weave.conflist.j2
dest: /etc/cni/net.d/10-weave.conflist