refactor: split control plane role into init/join/copy tasks

This commit is contained in:
2026-06-30 23:39:34 +01:00
parent 90686995d6
commit 068659e174
10 changed files with 54 additions and 111 deletions
@@ -1,4 +1,5 @@
- name: Copy Kubernetes Admin configuration
- name: Setup Kubernetes admin config for root user
become: true
block:
- name: Ensure .kube directory
ansible.builtin.file:
@@ -7,7 +8,7 @@
owner: "{{ ansible_facts['user_id'] }}"
group: "{{ ansible_facts['user_id'] }}"
mode: "0755"
- name: Copy Admin configuration
- name: Copy admin configuration
ansible.builtin.copy:
src: /etc/kubernetes/admin.conf
dest: "{{ ansible_facts['env']['HOME'] }}/.kube/config"