Testing API readiness
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
bd1b8d3482
commit
d0d40e0c24
12
playbook.yml
12
playbook.yml
@ -142,6 +142,12 @@
|
||||
|
||||
- block:
|
||||
|
||||
- ansible.builtin.shell:
|
||||
cmd: "curl -k https://{{ cluster.virtualip }}:6443/livez?verbose"
|
||||
register: api_readycheck
|
||||
- ansible.builtin.debug:
|
||||
var: api_readycheck
|
||||
|
||||
- name: Additional nodes -- Wait for available API
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ cluster.virtualip | ansible.utils.ipaddr('address') }}"
|
||||
@ -155,6 +161,12 @@
|
||||
K3S_TOKEN: "{{ cluster.token }}" # (hostvars[ansible_play_hosts[0]]).cluster.token
|
||||
K3S_URL: "{{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }}"
|
||||
|
||||
- ansible.builtin.shell:
|
||||
cmd: "curl -k https://{{ cluster.virtualip }}:6443/livez?verbose"
|
||||
register: api_readycheck
|
||||
- ansible.builtin.debug:
|
||||
var: api_readycheck
|
||||
|
||||
rescue:
|
||||
|
||||
- name: Debug systemd unit
|
||||
|
Loading…
Reference in New Issue
Block a user