Testing API readiness
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-21 16:41:51 +02:00
parent bd1b8d3482
commit d0d40e0c24

View File

@ -142,6 +142,12 @@
- block: - 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 - name: Additional nodes -- Wait for available API
ansible.builtin.wait_for: ansible.builtin.wait_for:
host: "{{ cluster.virtualip | ansible.utils.ipaddr('address') }}" host: "{{ cluster.virtualip | ansible.utils.ipaddr('address') }}"
@ -155,6 +161,12 @@
K3S_TOKEN: "{{ cluster.token }}" # (hostvars[ansible_play_hosts[0]]).cluster.token K3S_TOKEN: "{{ cluster.token }}" # (hostvars[ansible_play_hosts[0]]).cluster.token
K3S_URL: "{{ 'https://' + ( cluster.virtualip | ansible.utils.ipaddr('address') ) + ':6443' }}" 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: rescue:
- name: Debug systemd unit - name: Debug systemd unit