25 lines
530 B
YAML
25 lines
530 B
YAML
---
|
|
|
|
- name: Reset Talos
|
|
delegate_to: "{{ talosctl_host }}"
|
|
become: no
|
|
ansible.builtin.command:
|
|
cmd: >-
|
|
talosctl reset
|
|
--graceful=false
|
|
--wait=false
|
|
--reboot
|
|
--endpoints '{{ ansible_remote }}'
|
|
--nodes '{{ ansible_remote }}'
|
|
changed_when: true
|
|
environment:
|
|
TALOSCONFIG: "{{ talosconfig }}"
|
|
|
|
- name: Wait for Talos port 50000
|
|
delegate_to: "{{ talosctl_host }}"
|
|
become: no
|
|
ansible.builtin.wait_for:
|
|
host: "{{ ansible_remote }}"
|
|
port: 50000
|
|
delay: 10
|