4afbf51d32
Task "kube-roter | Set cni directory permissions" sets ownership of /opt/cni/bin to "kube" Task "kube-router | Copy cni plugins" copies the binaries from the archive setting the ownership back to "root" Fix "kube-roter" typo Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>
25 lines
584 B
YAML
25 lines
584 B
YAML
---
|
|
- name: kube-router | Create annotations
|
|
include: annotate.yml
|
|
tags: annotate
|
|
|
|
- name: kube-router | Set cni directory permissions
|
|
file:
|
|
path: /opt/cni/bin
|
|
state: directory
|
|
owner: kube
|
|
recurse: true
|
|
mode: 0755
|
|
|
|
- name: kube-router | Copy cni plugins
|
|
unarchive:
|
|
src: "{{ local_release_dir }}/cni-plugins-{{ image_arch }}-{{ cni_version }}.tgz"
|
|
dest: "/opt/cni/bin"
|
|
mode: 0755
|
|
owner: kube
|
|
remote_src: yes
|
|
|
|
- name: kube-router | Create manifest
|
|
template:
|
|
src: kube-router.yml.j2
|
|
dest: "{{ kube_config_dir }}/kube-router.yml"
|