This commit is contained in:
2026-03-04 14:21:52 +01:00
parent d3c428722f
commit 58de9124f5

View File

@@ -226,4 +226,18 @@
{{ hostvars['rocky' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }} {{ hostvars['rocky' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }}
args: args:
creates: /etc/kubernetes/kubelet.conf creates: /etc/kubernetes/kubelet.conf
when: not inventory_hostname.endswith('-vm01.home.lan') when: not inventory_hostname.endswith('-vm01.home.lan')
- name: get repository
git: https://github.com/ahmetb/kubectx
dest: /opt/kubectx
version: master
- name: Create symbolic links for kubectx and kubens
file:
src: /opt/kubectx/{{ item }}
dest: /usr/local/bin/{{ item }}
state: link
loop:
- kubectx
- kubens