mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-29 04:02:38 +01:00
Make it possible to disable the creation of the kubectl/crictl symlinks
If k3s_create_kubectl_symlink is set to false the kubectl symlink will not be created. If k3s_create_crictl_symlink is set to false the crictl symlink will not be created. By default the symlinks will be created. The default behavior is not changed. Signed-off-by: Christian Berendt <berendt@osism.tech>
This commit is contained in:
@@ -146,12 +146,14 @@
|
|||||||
src: /usr/local/bin/k3s
|
src: /usr/local/bin/k3s
|
||||||
dest: /usr/local/bin/kubectl
|
dest: /usr/local/bin/kubectl
|
||||||
state: link
|
state: link
|
||||||
|
when: k3s_create_kubectl_symlink | default(true) | bool
|
||||||
|
|
||||||
- name: Create crictl symlink
|
- name: Create crictl symlink
|
||||||
file:
|
file:
|
||||||
src: /usr/local/bin/k3s
|
src: /usr/local/bin/k3s
|
||||||
dest: /usr/local/bin/crictl
|
dest: /usr/local/bin/crictl
|
||||||
state: link
|
state: link
|
||||||
|
when: k3s_create_crictl_symlink | default(true) | bool
|
||||||
|
|
||||||
- name: Get contents of manifests folder
|
- name: Get contents of manifests folder
|
||||||
find:
|
find:
|
||||||
|
|||||||
Reference in New Issue
Block a user