mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Fetch kubeconfig to local
This commit is contained in:
parent
84b8404d17
commit
6f5ef180d3
@ -50,4 +50,8 @@
|
|||||||
dest: "{{ k3s_service_file }}"
|
dest: "{{ k3s_service_file }}"
|
||||||
notify: Restart k3s service
|
notify: Restart k3s service
|
||||||
|
|
||||||
# Get kubeconfig /etc/rancher/k3s/k3s.yaml
|
- name: Get Kubernetes config file
|
||||||
|
run_once: yes
|
||||||
|
fetch:
|
||||||
|
src: /etc/rancher/k3s/k3s.yaml
|
||||||
|
dest: "{{ playbook_dir }}/kubeconfig.yaml"
|
||||||
|
Loading…
Reference in New Issue
Block a user