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
77847e2980
commit
9f6043344d
1 file changed
+7
-1
@@ -196,11 +196,17 @@
|
|||||||
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: Save join command
|
- name: Save manager hostname for workers
|
||||||
set_fact:
|
set_fact:
|
||||||
kube_manager: "{{ inventory_hostname }}"
|
kube_manager: "{{ inventory_hostname }}"
|
||||||
when: inventory_hostname.endswith('-vm01.home.lan')
|
when: inventory_hostname.endswith('-vm01.home.lan')
|
||||||
|
|
||||||
|
- name: "Debug manager hostname: {{ kube_manager }}"
|
||||||
|
debug:
|
||||||
|
var: kube_manager
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
|
||||||
- name: Print join command
|
- name: Print join command
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ worker_join_cmd }}"
|
msg: "{{ worker_join_cmd }}"
|
||||||
|
|||||||
Reference in new issue
Block a user