mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
build
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user