diff --git a/ansible/playbooks/tasks/kubeconfig.yaml b/ansible/playbooks/tasks/kubeconfig.yaml index d05e27aa..56bf684e 100644 --- a/ansible/playbooks/tasks/kubeconfig.yaml +++ b/ansible/playbooks/tasks/kubeconfig.yaml @@ -1,9 +1,12 @@ --- - name: Get absolute path to this Git repository # noqa: command-instead-of-module ansible.builtin.command: git rev-parse --show-toplevel + delegate_to: localhost + become: false + run_once: true + register: repository_path changed_when: false check_mode: false - register: repository_path failed_when: repository_path.rc != 0 - name: Copy kubeconfig to the project directory