This commit is contained in:
2026-03-04 14:31:35 +01:00
parent e6a5e11698
commit 51d68cbc99

View File

@@ -221,20 +221,20 @@
delay: 15
when: inventory_hostname.endswith('-vm01.home.lan')
- name: Join cluster
- name: Join cluster
command: >-
{{ hostvars['rocky' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }}
args:
creates: /etc/kubernetes/kubelet.conf
when: not inventory_hostname.endswith('-vm01.home.lan')
- name: get repository
- name: get repository
git:
repo: 'https://github.com/ahmetb/kubectx'
dest: /opt/kubectx
when: inventory_hostname.endswith('-vm01.home.lan')
- name: Create symbolic links for kubectx and kubens
- name: Create symbolic links for kubectx and kubens
file:
src: /opt/kubectx/{{ item }}
dest: /usr/local/bin/{{ item }}