mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -129,7 +129,24 @@
|
||||
worker_join_cmd: "{{ join_command.stdout }}"
|
||||
when: inventory_hostname == 'rocky9-vm01.home.lan'
|
||||
|
||||
- name: Print join command
|
||||
debug:
|
||||
msg: "{{ worker_join_cmd }}"
|
||||
when: inventory_hostname == 'rocky9-vm01.home.lan'
|
||||
|
||||
- name: Wait for Kubernetes API
|
||||
uri:
|
||||
url: https://localhost:6443/healthz
|
||||
method: GET
|
||||
status_code: 200
|
||||
validate_certs: no
|
||||
register: api_health
|
||||
until: api_health.status == 200
|
||||
retries: 10
|
||||
delay: 15
|
||||
|
||||
|
||||
when: inventory_hostname == 'rocky9-vm01.home.lan'
|
||||
- name: Join cluster
|
||||
command: "{{ hostvars['rocky9-vm01.home.lan'].worker_join_cmd }}"
|
||||
args:
|
||||
|
||||
Reference in New Issue
Block a user