diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index 4da9ad30a..c45ccb68f 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -66,7 +66,7 @@ copy: content: | #!/bin/bash - kubectl --kubeconfig=admin.conf $@ + kubectl --kubeconfig=${BASH_SOURCE%/*}/admin.conf $@ dest: "{{ artifacts_dir }}/kubectl.sh" mode: 0755 become: no