24 lines
644 B
YAML
24 lines
644 B
YAML
---
|
|
|
|
- name: Import talos_machine_status tasks
|
|
ansible.builtin.import_tasks: "{{ role_path }}/../../shared/tasks/talos_machine_status.yml"
|
|
|
|
- name: Show machine status
|
|
ansible.builtin.debug:
|
|
var: talos_machine_status
|
|
|
|
- name: Talosctl get members
|
|
delegate_to: "{{ talosctl_host }}"
|
|
become: no
|
|
when: "'talos_first_nodes' in group_names"
|
|
ansible.builtin.command:
|
|
cmd: talosctl get members
|
|
changed_when: false
|
|
environment:
|
|
TALOSCONFIG: "{{ talosconfig }}"
|
|
register: _talosctl_get_members
|
|
|
|
- name: Show members
|
|
when: "first_node | default(false)"
|
|
ansible.builtin.debug:
|
|
var: _talosctl_get_members.stdout_lines |