mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -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