Switch to cli_parse icw until key
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
991882a7b1
commit
fc010837a7
22
playbook.yml
22
playbook.yml
@ -137,20 +137,14 @@
|
|||||||
src: kube-vip.j2
|
src: kube-vip.j2
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/kube-vip.yml
|
dest: /var/lib/rancher/k3s/server/manifests/kube-vip.yml
|
||||||
|
|
||||||
- block:
|
- name: Initial node -- Wait for available API
|
||||||
|
ansible.netcommon.cli_parse:
|
||||||
- name: Initial node -- Test API
|
command: "curl -k https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443/livez?verbose"
|
||||||
ansible.builtin.shell:
|
parser:
|
||||||
cmd: "curl -k https://{{ cluster.virtualip | ansible.utils.ipaddr('address') }}:6443/livez?verbose"
|
name: ansible.utils.json
|
||||||
register: api_readycheck
|
register: api_readycheck
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
until: api_readycheck.apiVersion is defined
|
||||||
- name: Initial node -- Check for valid output
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
api_validoutput: "{{ ( api_readycheck.stdout | from_json ) }}"
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
until: api_validoutput.apiVersion is defined
|
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 30
|
delay: 30
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user