create users template
This commit is contained in:
@@ -1,3 +1,37 @@
|
||||
authelia_users:
|
||||
- username: ryan
|
||||
displayname: "Ryan Toler"
|
||||
email: ryan.toler@localhost.com
|
||||
password_hash: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
39313736656438323232626639616564613431653139666534353263396435343566373730626266
|
||||
3930396138623965333539633562313337613534353664650a373164343439356466383064383662
|
||||
66613862646561663731323335616130336539623636396337306463303034366564663031396230
|
||||
6437626532633736620a663434306133386639633133363564383337623836376464633035316338
|
||||
38356566333831343364383061396166316664323030333637646461613839366565396462303964
|
||||
33643431623162366366346530326233303535623939376638653164353434643634623238323935
|
||||
36336566306533663335363639356565623061613633623863346338353633343938306439636332
|
||||
30616330353662356562323939356463303164363432373362653066316536663735343661316531
|
||||
62376661313935663635663262396433336161623762363763383566353731653831
|
||||
groups:
|
||||
- admin
|
||||
- user
|
||||
- username: yulia
|
||||
displayname: "Yulia Toler"
|
||||
email: yulia.toler@localhost.com
|
||||
password_hash: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
39353636636235616163313962393033303063343634623438356230356338346639633263323565
|
||||
6466376465303034383333356264303938653334343334340a346234623932393763343038626464
|
||||
66323666343661313537633262633566313937633662626430616162386563373530313932353533
|
||||
6638623663653438660a643836343661386565366166353263303065323335326662633366363337
|
||||
39643538396537656332373833306236376561303735616163626265343432386331393161646161
|
||||
66373463366235393061643962653537663530353365326536616335613732393233666136616131
|
||||
36633362373236306634396631393036396330313933373832323538663833616263613739333633
|
||||
31646636656539623734613736656138383838333038316335656434326339313362633762663633
|
||||
30623138323836313637363363376338343466336235623936663336653965313762
|
||||
groups:
|
||||
- users
|
||||
authelia_jwt_secret: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
34306239616233393235376564646464613833313332353365666264663735656536663133643736
|
||||
|
||||
11
roles/authelia/templates/users_database.yml.j2
Normal file
11
roles/authelia/templates/users_database.yml.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
users:
|
||||
{% for user in authelia_users %}
|
||||
{{ user.username }}:
|
||||
displayname: "{{ user.displayname }}"
|
||||
password: "{{ user.password_hash }}"
|
||||
email: {{ user.email }}
|
||||
groups:
|
||||
{% for group in user.groups %}
|
||||
- {{ group }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user