snel.kubernetes-cluster/roles/common/handlers/talos.yml

17 lines
388 B
YAML

---
- name: Talos wait for health
when: "'talos_first_nodes' in group_names"
delegate_to: "{{ talosctl_host }}"
become: no
ansible.builtin.command:
cmd: >-
talosctl health
--wait-timeout 5m
register: _talosctl_health
until: "_talosctl_health is not failed"
retries: 10
delay: 10
changed_when: false
environment:
TALOSCONFIG: "{{ talosconfig }}"