23 lines
678 B
YAML
23 lines
678 B
YAML
---
|
|
- name: Directory for configs
|
|
delegate_to: "{{ talosctl_host }}"
|
|
become: false
|
|
ansible.builtin.file:
|
|
path: "{{ talos_cluster_config_dir }}"
|
|
state: directory
|
|
mode: u=rwX,go=
|
|
|
|
- name: Import create_secrets tasks
|
|
ansible.builtin.import_tasks: create_secrets.yml
|
|
|
|
- name: Import create_talosconfig tasks
|
|
ansible.builtin.import_tasks: create_talosconfig.yml
|
|
|
|
- name: Import create_control_configs tasks
|
|
when: "'talos_control_nodes' in group_names"
|
|
ansible.builtin.import_tasks: create_control_configs.yml
|
|
|
|
- name: Import create_worker_configs tasks
|
|
when: "'talos_worker_nodes' in group_names"
|
|
ansible.builtin.import_tasks: create_worker_configs.yml
|