Files
cloudy/ansible/Playbooks/talos/roles/configure-cluster/tasks/main.yaml
T

12 lines
656 B
YAML

---
- name: Check that the config file doesn't already exist
ansible.builtin.stat:
path: "{{ config_file }}"
register: stat_result
# Generate Machine Configurations. This is using the qemu agent as per: https://www.talos.dev/v1.7/talos-guides/install/virtualized-platforms/proxmox/
- name: Generate config for cluster
when: "not stat_result.stat.exists"
ansible.builtin.command: talosctl gen config talos-proxmox-cluster https://{{ control_plane_ip }}:6443 --output-dir {{ config_directory }} --install-image factory.talos.dev/installer/770f94a47e708326b61f3e641bb733dc879c544dee1972e74763798fe93a1f6d:{{ talos_version }}
changed_when: true