mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-23 07:28:06 -03:30
if not set owner to kube_owner in unarchive module, the owner of /opt/cni/bin will changed to root, which is inconsistent with the previous task.
17 lines
334 B
YAML
17 lines
334 B
YAML
---
|
|
- name: CNI | make sure /opt/cni/bin exists
|
|
file:
|
|
path: /opt/cni/bin
|
|
state: directory
|
|
mode: 0755
|
|
owner: "{{ kube_owner }}"
|
|
recurse: true
|
|
|
|
- name: CNI | Copy cni plugins
|
|
unarchive:
|
|
src: "{{ downloads.cni.dest }}"
|
|
dest: "/opt/cni/bin"
|
|
mode: 0755
|
|
owner: "{{ kube_owner }}"
|
|
remote_src: yes
|