Generate and apply Talso configs

This commit is contained in:
Jeroen Vermeulen 2023-08-29 00:33:17 +02:00
parent 26d0cf7f82
commit fc5c05c0be
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View File

@ -10,6 +10,7 @@
--vault-password-file '{{ ansible_vault_password_file }}'
--output '{{ talos_cluster_secrets_file }}.enc'
'{{ talos_cluster_secrets_file }}'"
changed_when: true
- name: Update talosconfig - endpoints
listen: Update talosconfig
@ -19,6 +20,7 @@
ansible.builtin.command:
cmd: >-
talosctl config endpoints '{{ talos_control_lb_hostname }}'
changed_when: true
- name: Update talosconfig - nodes
listen: Update talosconfig
@ -28,3 +30,4 @@
ansible.builtin.command:
cmd: >-
talosctl config nodes '{{ talos_control_lb_hostname }}'
changed_when: true

View File

@ -10,3 +10,4 @@
--nodes '{{ ansible_remote }}'
--endpoints '{{ ansible_remote }}'
{% if talos_machine_status.spec.stage == 'maintenance' %} --insecure{% endif %}
changed_when: true

View File

@ -17,5 +17,3 @@
--additional-sans '{{ talos_control_lb_hostname }}'
--force
creates: "{{ talos_node_config_file }}"

View File

@ -12,4 +12,4 @@
--with-secrets '{{ talos_cluster_secrets_file }}'
--force
creates: "{{ talosconfig }}"
notify: Update talosconfig
notify: Update talosconfig

View File

@ -17,5 +17,3 @@
--additional-sans '{{ talos_control_lb_hostname }}'
--force
creates: "{{ talos_node_config_file }}"