This commit is contained in:
2026-05-27 13:31:20 +02:00
parent b6c08db941
commit 2e054e5b7e
+1 -5
View File
@@ -368,15 +368,11 @@
worker_join_cmd: "{{ join_command.stdout }}" worker_join_cmd: "{{ join_command.stdout }}"
when: inventory_hostname.endswith('-vm01.home.lan') when: inventory_hostname.endswith('-vm01.home.lan')
- name: Print release variable
debug:
var: ansible_distribution_major_version
- name: Join cluster - name: Join cluster
command: "{{ hostvars['debian' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }}" command: "{{ hostvars['debian' ~ 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_chostname.endswith('-vm01.home.lan') when: not inventory_hostname.endswith('-vm01.home.lan')
- name: get repository - name: get repository
git: git: