mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 05:07:06 +01:00
build
This commit is contained in:
1 parent
bc93491ba1
commit
a8fe72b18b
1 file changed
+6
-1
@@ -368,8 +368,13 @@
|
|||||||
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_release }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Join cluster
|
- 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:
|
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')
|
||||||
|
|||||||
Reference in new issue
Block a user