This commit is contained in:
2026-05-27 13:25:37 +02:00
parent bc93491ba1
commit a8fe72b18b
+6 -1
View File
@@ -368,8 +368,13 @@
worker_join_cmd: "{{ join_command.stdout }}"
when: inventory_hostname.endswith('-vm01.home.lan')
- name: Print release variable
debug:
var: "{{ ansible_distribution_release }}"
- name: Join cluster
command: "{{ hostvars['debian12-vm01.home.lan'].worker_join_cmd }}"
command: "{{ hostvars['debian{{ ansible_distribution_release }}-vm01.home.lan'].worker_join_cmd }}"
args:
creates: /etc/kubernetes/kubelet.conf
when: not inventory_hostname.endswith('-vm01.home.lan')