Files
k3s-ansible/roles/k3s/copy-config/tasks/main.yml
T
2022-11-15 09:35:05 +00:00

8 lines
204 B
YAML

---
- name: Store kube configuration
ansible.builtin.fetch:
src: ~/.kube/config
dest: ~/.kube/config
flat: true
when: ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname']