From 491624a5c1263582320075410b449a020947fe8e Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 5 Aug 2024 19:22:02 +0200 Subject: [PATCH] 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 --- 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 ae2d8e9..c92db70 100644 --- a/roles/k3s_server/tasks/main.yml +++ b/roles/k3s_server/tasks/main.yml @@ -146,12 +146,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: