From 2d0596209ee542d728830d4f9e97686ac1c28f26 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 6 Aug 2024 04:19:57 +0200 Subject: [PATCH] Make it possible to disable the creation of the kubectl/crictl symlinks (#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 Co-authored-by: Techno Tim --- roles/k3s_server/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/k3s_server/tasks/main.yml b/roles/k3s_server/tasks/main.yml index fa74ccd..f783ce8 100644 --- a/roles/k3s_server/tasks/main.yml +++ b/roles/k3s_server/tasks/main.yml @@ -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: