snel.kubernetes-cluster/roles/talos_upgrade/tasks/main.yml

24 lines
570 B
YAML

---
- name: Upgrade Talos
delegate_to: "{{ talosctl_host }}"
become: no
throttle: 1
ansible.builtin.command:
cmd: >-
talosctl upgrade
--image="ghcr.io/siderolabs/installer:{{ talos_version }}"
--endpoints '{{ talos_control_lb_hostname }}'
--nodes '{{ ansible_remote }}'
--wait=true
changed_when: false
environment:
TALOSCONFIG: "{{ talosconfig }}"
- name: Wait for Talos port 50000
delegate_to: "{{ talosctl_host }}"
become: no
ansible.builtin.wait_for:
host: "{{ ansible_remote }}"
port: 50000