27 lines
641 B
YAML
27 lines
641 B
YAML
---
|
|
- name: Upgrade Talos
|
|
delegate_to: "{{ talosctl_host }}"
|
|
throttle: 1
|
|
ansible.builtin.command:
|
|
cmd: >-
|
|
talosctl upgrade
|
|
--image="ghcr.io/siderolabs/installer:{{ talos_version }}"
|
|
--endpoints='{{ talos_control_lb_hostname }}'
|
|
--preserve
|
|
--nodes='{{ ansible_host }}'
|
|
--timeout='30m'
|
|
--wait=true
|
|
changed_when: true
|
|
environment:
|
|
TALOSCONFIG: "{{ talosconfig }}"
|
|
|
|
- name: Wait for Talos port 50000
|
|
delegate_to: "{{ talosctl_host }}"
|
|
throttle: 1
|
|
become: false
|
|
ansible.builtin.wait_for:
|
|
host: "{{ ansible_host }}"
|
|
port: 50000
|
|
delay: 5
|
|
timeout: 300
|