From db5f6c6e5ceb183dd5dd66118944b7585cbe4a9a Mon Sep 17 00:00:00 2001 From: Pieter van der Merwe Date: Sat, 13 Jul 2019 21:10:33 +0200 Subject: [PATCH] Createsymlinks for kubectl and crictl --- contrib/ansible/roles/k3s/master/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/ansible/roles/k3s/master/tasks/main.yml b/contrib/ansible/roles/k3s/master/tasks/main.yml index 7c2e7c4181..a20cc712c4 100644 --- a/contrib/ansible/roles/k3s/master/tasks/main.yml +++ b/contrib/ansible/roles/k3s/master/tasks/main.yml @@ -62,3 +62,15 @@ path: /home/{{ ansible_user }}/.kube/config regexp: 'https://localhost:6443' replace: 'https://{{master_ip}}:6443' + +- name: Create kubectl symlink + file: + src: /usr/local/bin/k3s + dest: /usr/local/bin/kubectl + state: link + +- name: Create crictl symlink + file: + src: /usr/local/bin/k3s + dest: /usr/local/bin/crictl + state: link