Add Authentik SSO service and refactor Valkey configuration to use native tools and consolidated systemd service

This commit is contained in:
2025-11-22 21:36:23 +01:00
parent 500224b5de
commit d814369c99
21 changed files with 769 additions and 74 deletions

View File

@@ -38,19 +38,12 @@
backup: yes
notify: restart valkey
- name: Create systemd override directory for Valkey security
file:
path: /etc/systemd/system/valkey.service.d
state: directory
mode: '0755'
when: valkey_systemd_security
- name: Deploy Valkey systemd security override
- name: Deploy custom Valkey service file
template:
src: systemd-override.conf.j2
dest: /etc/systemd/system/valkey.service.d/override.conf
src: valkey.service.j2
dest: /etc/systemd/system/valkey.service
mode: '0644'
when: valkey_systemd_security
backup: yes
notify:
- reload systemd
- restart valkey
@@ -70,7 +63,7 @@
when: valkey_service_state == "started"
- name: Test Valkey connectivity
command: redis-cli -h {{ valkey_bind }} -p {{ valkey_port }} -a {{ valkey_requirepass }} ping
command: valkey-cli -h {{ valkey_bind }} -p {{ valkey_port }} -a "{{ valkey_password }}" ping
register: valkey_ping_result
changed_when: false
failed_when: valkey_ping_result.stdout != "PONG"