Skip to content

Commit

Permalink
Make it possible to disable the creation of the kubectl/crictl symlin…
Browse files Browse the repository at this point in the history
…ks (#558)

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 <[email protected]>
Co-authored-by: Techno Tim <[email protected]>
  • Loading branch information
berendt and timothystewart6 committed Aug 6, 2024
1 parent 3a20500 commit 2d05962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/k3s_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@
src: /usr/local/bin/k3s
dest: /usr/local/bin/kubectl
state: link
when: k3s_create_kubectl_symlink | default(true) | bool

- name: Create crictl symlink
file:
src: /usr/local/bin/k3s
dest: /usr/local/bin/crictl
state: link
when: k3s_create_crictl_symlink | default(true) | bool

- name: Get contents of manifests folder
find:
Expand Down

0 comments on commit 2d05962

Please sign in to comment.