fix(ansible): use localhost when getting repository path for kubeconfig

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-07-06 09:08:50 -04:00
1 parent ddbb9b1f48
commit 14d72ae55a
1 file changed
+4 -1
+4 -1
View File
@@ -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