fix(ansible): use localhost when getting repository path for kubeconfig
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 file changed
+4
-1
@@ -1,9 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Get absolute path to this Git repository # noqa: command-instead-of-module
|
- name: Get absolute path to this Git repository # noqa: command-instead-of-module
|
||||||
ansible.builtin.command: git rev-parse --show-toplevel
|
ansible.builtin.command: git rev-parse --show-toplevel
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
run_once: true
|
||||||
|
register: repository_path
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
register: repository_path
|
|
||||||
failed_when: repository_path.rc != 0
|
failed_when: repository_path.rc != 0
|
||||||
|
|
||||||
- name: Copy kubeconfig to the project directory
|
- name: Copy kubeconfig to the project directory
|
||||||
|
|||||||
Reference in new issue
Block a user