refactor(auth): remove Authentik SSO, restore basic auth and provision Node Exporter dashboard
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-net / deploy (push) Failing after 25s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 37s

This commit is contained in:
karpenok committed 2026-11-11 17:45:21 +07:00
1 parent 94a143623b
commit c0a9d7f0c8
16 files changed
+15726 -263

No files matched your search

@@ -4,3 +4,4 @@ traefik_dir: "/opt/traefik"
traefik_dynamic_dir: "/opt/traefik/dynamic"
traefik_log_dir: "/var/log/traefik"
traefik_acme_email: "{{ letsencrypt_email }}"
traefik_dashboard_auth: "{{ lookup('ansible.builtin.env', 'TRAEFIK_DASHBOARD_AUTH', default='') }}"
@@ -5,17 +5,6 @@ http:
entryPoints:
- websecure
service: ntfy
middlewares:
- authentik@file
tls:
certResolver: letsencrypt
ntfy-outpost:
rule: "Host(`ntfy.gunihome.ru`) && PathPrefix(`/outpost.goauthentik.io/`)"
entryPoints:
- websecure
service: authentik@file
priority: 100
tls:
certResolver: letsencrypt
+10 -1
View File
@@ -46,6 +46,15 @@
group: root
mode: "0644"
- name: Установить конфигурацию Traefik Dashboard с BasicAuth
ansible.builtin.template:
src: dynamic/dashboard.yml.j2
dest: "{{ traefik_dynamic_dir }}/dashboard.yml"
owner: root
group: root
mode: "0644"
when: traefik_dashboard_auth is defined and traefik_dashboard_auth | length > 0
- name: Найти существующие файлы маршрутов на сервере
ansible.builtin.find:
paths: "{{ traefik_dynamic_dir }}"
@@ -58,7 +67,7 @@
state: absent
loop: "{{ remote_dynamic_files.files }}"
vars:
repo_files: "{{ q('fileglob', role_path ~ '/files/dynamic/*.yml') | map('basename') | list }}"
repo_files: "{{ (q('fileglob', role_path ~ '/files/dynamic/*.yml') | map('basename') | list) + ['dashboard.yml'] }}"
when: item.path | basename not in repo_files
- name: Запустить Traefik через Docker Compose
@@ -6,7 +6,12 @@ http:
- websecure
service: api@internal
middlewares:
- authentik@file
- dashboard-auth
tls:
certResolver: letsencrypt
middlewares:
dashboard-auth:
basicAuth:
users:
- "{{ traefik_dashboard_auth }}"