create an admin user

This commit is contained in:
Jean-Marie Mineau 2021-01-26 00:11:28 +01:00
parent 476b66cb30
commit 7542d56d39
5 changed files with 34 additions and 7 deletions

View file

@ -1,7 +1,14 @@
$ANSIBLE_VAULT;1.1;AES256
66346339616339316665383163613863376439383934626434313163376634306435656437353165
6263666165323933346232356234656137646466336466360a656639643838323563643235363933
30333435366138343930636130373239663735303164636639633039326131343533343561393561
3864653732636464320a396563643963393862353962323462616231393332633131633832336338
36633138646430623563316538643534666230363638333732633432316533343263303766616561
6431623436633030393133616166323434613464636631646338
32366334663864626633613637366638313737333863613564633066343832313732646261613862
6235326333333030336233363963623964643736353336630a666637623235313237383961396532
65326234323631646537333130623331633633383634313030613065646566343866666163383663
6131323731666232320a356162666437363538383163666230663636636662346365623263363838
63636330636438663962653636366332366363666661366263306537363533663830346437363031
65383531333631383033383561633633383665306335663364636166653266303765373234356135
65656665333636633539323765616364666332323365333333343436613939393966313731373461
65376633663638653632383761303939376463353166653135333132353937316636376165633936
63363730616538353366666330646564373765613363653062383263653362663266346238643066
64366437623736616631373134333439373062373537316134373033666464383532666436306231
65333139653330383133363163623635306432653438303438616636363531633439303862346638
35343065353966613838376338306132626132313632643765323436313961306535623235633364
6461

View file

@ -0,0 +1,5 @@
vault_email: user@example.com
# keycloak
vault_admin_keycloak: admin
vault_mdp_admin_keycloak: my_password

View file

@ -8,6 +8,14 @@
debug:
msg: This is a test server, do not use in production
- name: Copy env variables
template:
src: dot_env.j2
dest: /var/local/keycloak/.env
mode: 0400
owner: root
group: staff
- name: Copy docker-compose.yml
template:
src: docker-compose.yml.j2

View file

@ -6,5 +6,8 @@ services:
image: jboss/keycloak
container_name: keycloak
restart: always
environment:
- "KEYCLOAK_USER=${USERNAME}"
- "KEYCLOAK_PASSWORD=${PASSWORD}"
ports:
- "80:8080"
- 80:8080

View file

@ -0,0 +1,4 @@
# {{ ansible_managed }}
USERNAME={{ vault_admin_keycloak }}
PASSWORD={{ vault_mdp_admin_keycloak }}