generated from sebclem/ansible-role-template
Add code
This commit is contained in:
parent
e2554edade
commit
d587c3d09e
@ -1,2 +1,6 @@
|
|||||||
---
|
---
|
||||||
# defaults file for ${REPO_NAME_TITLE}
|
# defaults file for ${REPO_NAME_TITLE}
|
||||||
|
|
||||||
|
authelia_version: "v4.37.5"
|
||||||
|
|
||||||
|
authelia_config: {}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
3
templates/configuration.yml.j2
Normal file
3
templates/configuration.yml.j2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
|
{{ authelia_config | to_nice_yaml(width=99999)}}
|
@ -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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user