* Test cluster using molecule * Fix detection of first control node * Include --flannel-iface and --node-ip as k3s arguments * Store logs of k3s-init.service as GitHub job artifacts
20 lines
553 B
YAML
20 lines
553 B
YAML
---
|
|
- name: Create temporary directory for kubecfg
|
|
ansible.builtin.tempfile:
|
|
state: directory
|
|
suffix: kubecfg
|
|
register: kubecfg
|
|
- name: Gathering facts
|
|
delegate_to: "{{ groups['master'][0] }}"
|
|
ansible.builtin.gather_facts:
|
|
- name: Download kubecfg
|
|
ansible.builtin.fetch:
|
|
src: "{{ ansible_env.HOME }}/.kube/config"
|
|
dest: "{{ kubecfg.path }}/"
|
|
flat: true
|
|
delegate_to: "{{ groups['master'][0] }}"
|
|
delegate_facts: true
|
|
- name: Store path to kubecfg
|
|
ansible.builtin.set_fact:
|
|
kubecfg_path: "{{ kubecfg.path }}/config"
|