refactor: split control plane role into init/join/copy tasks
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user