This commit is contained in:
SebClem 2023-04-18 19:46:08 +02:00
parent e2554edade
commit d587c3d09e
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
5 changed files with 30 additions and 0 deletions

View File

@ -1,2 +1,6 @@
--- ---
# defaults file for ${REPO_NAME_TITLE} # defaults file for ${REPO_NAME_TITLE}
authelia_version: "v4.37.5"
authelia_config: {}

View File

@ -1,2 +1,7 @@
--- ---
# handlers file for Ansible-Authelia-Role # handlers file for Ansible-Authelia-Role
- name: Restart authelia
ansible.builtin.service:
name: authelia
state: restarted

View File

@ -1,2 +1,17 @@
--- ---
# tasks file for Ansible-Authelia-Role # tasks file for Ansible-Authelia-Role
- name: Install Authelia from DEB file
ansible.builtin.apt:
deb: "{{ authelia_dowload_url }}"
notify: Restart authelia
- name: Install config
ansible.builtin.template:
src: configuration.yml.j2
dest: /etc/authelia/configuration.yml
mode: "0600"
owner: root
group: root
validate: authelia validate-config --config /etc/authelia/configuration.yml
notify: Restart authelia

View File

@ -0,0 +1,3 @@
{{ ansible_managed | comment }}
{{ authelia_config | to_nice_yaml(width=99999)}}

View File

@ -1,2 +1,5 @@
--- ---
# vars file for Ansible-Authelia-Role # vars file for Ansible-Authelia-Role
authelia_file_name: "authelia_{{ authelia_version }}_amd64.deb"
authelia_dowload_url: "https://github.com/authelia/authelia/releases/download/{{ authelia_file_name }}/{{ authelia_file_name }}"