24 lines
638 B
YAML
24 lines
638 B
YAML
---
|
|
|
|
- name: Apply Talos node config
|
|
delegate_to: "{{ talosctl_host }}"
|
|
become: no
|
|
ansible.builtin.command:
|
|
cmd: >-
|
|
talosctl apply-config
|
|
--file '{{ talos_node_config_file }}'
|
|
--nodes '{{ ansible_remote }}'
|
|
--endpoints '{{ ansible_remote }}'
|
|
--mode auto
|
|
{% if talos_machine_status.spec.stage == 'maintenance' %} --insecure{% endif %}
|
|
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: 5 |