prole/infrastructure/roles/prole_ssl/tasks/main.yml
chrisfu 598eae4633 Enable TLS for k3s registry and deploy SSL certs
- Add ssl_hosts group and prole_ssl role to deploy registry cert/key to /etc/ssl/certs/prole

- Configure k8s registry deployment to serve HTTPS using mounted host certs

- Switch k3s/containerd registry mirror config to https:// and prefer HTTPS checks with HTTP fallback

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-10 00:58:08 -07:00

18 lines
464 B
YAML

---
- name: Ensure Prole SSL directory exists
ansible.builtin.file:
path: "{{ prole_ssl_dest_dir }}"
state: directory
owner: root
group: root
mode: '0755'
- name: Deploy Prole SSL files
ansible.builtin.copy:
src: "{{ prole_ssl_src_dir }}/{{ item }}"
dest: "{{ prole_ssl_dest_dir }}/{{ item }}"
owner: root
group: root
mode: "{{ '0600' if (item | regex_search('\\.key$')) else '0644' }}"
loop: "{{ prole_ssl_files }}"