feat: run hydra migrations if specified
This commit is contained in:
parent
547eb73d6c
commit
9054f14223
|
@ -18,6 +18,7 @@ cadoles_pod_hydra_ldap_v1_package_version: '*'
|
||||||
|
|
||||||
# Hydra database configuration
|
# Hydra database configuration
|
||||||
hydra_use_external_database: false
|
hydra_use_external_database: false
|
||||||
|
hydra_auto_migrate: false
|
||||||
hydra_database_name: hydra
|
hydra_database_name: hydra
|
||||||
hydra_database_user: hydra
|
hydra_database_user: hydra
|
||||||
hydra_database_password: hydra
|
hydra_database_password: hydra
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
state: started
|
state: started
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Migrate Hydra database schema
|
||||||
|
command: podman exec -it cadoles-pod-hydra-v1 migrate-hydra-schema
|
||||||
|
become: true
|
||||||
|
when: hydra_auto_migrate
|
||||||
|
|
||||||
- name: Create hydra-clients
|
- name: Create hydra-clients
|
||||||
template:
|
template:
|
||||||
src: hydra-client.json.j2
|
src: hydra-client.json.j2
|
||||||
|
|
Loading…
Reference in New Issue