feat: add ability to provision local users using blueprints

This commit is contained in:
Bert-Jan Fikse 2026-01-14 15:43:03 +01:00
parent 359622d17a
commit d800d43c71
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
3 changed files with 56 additions and 0 deletions

View file

@ -77,6 +77,14 @@
mode: "0644"
register: login_bp
- name: Render local users blueprint
ansible.builtin.template:
src: blueprints/blueprint-local-users.yaml.j2
dest: "{{ authentik_docker_volume_dir }}/blueprints/05-local-users.yaml"
mode: "0644"
when: authentik_local_users | length > 0
register: local_users_bp
- name: Create docker-compose file for authentik
template:
src: docker-compose.yml.j2
@ -95,5 +103,6 @@
or (outpost_bp is defined and (outpost_bp.results | selectattr('changed') | list | length > 0))
or (entra_bp is defined and (entra_bp.results | selectattr('changed') | list | length > 0))
or (login_bp is defined and login_bp.changed)
or (local_users_bp.changed | default(false))
) | ternary('always','auto')
}}