Fetch kubeconfig to local

This commit is contained in:
Khue Doan 2021-09-01 05:43:35 +07:00
parent 84b8404d17
commit 6f5ef180d3

View File

@ -50,4 +50,8 @@
dest: "{{ k3s_service_file }}"
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"