Intégration hydra-ldap-v1

This commit is contained in:
2022-08-25 20:32:15 +02:00
parent 762c2559b3
commit d52e83e3f4
7 changed files with 107 additions and 1 deletions

20
tasks/hydra-ldap.yml Normal file
View File

@ -0,0 +1,20 @@
---
- name: Install cadoles-pod-hydra-ldap-v1 package
ansible.builtin.apt:
name:
- "cadoles-pod-hydra-ldap-v1={{ cadoles_pod_hydra_ldap_v1_package_version }}"
update_cache: yes
state: present
become: true
- name: Configure cadoles-pod-hydra-ldap-v1
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- src: cadoles-pod-hydra-ldap-v1.conf.j2
dest: /etc/cadoles-pod-hydra-ldap-v1.conf
notify:
- Restart cadoles-pod-hydra-ldap-v1
become: true

View File

@ -111,6 +111,10 @@
ansible.builtin.include_tasks: hydra-oidc.yml
when: enable_hydra_oidc
- name: Configure LDAP authentification if enabled
ansible.builtin.include_tasks: hydra-ldap.yml
when: enable_hydra_ldap
- name: Start OIDC Test app if enabled
ansible.builtin.include_tasks: start-oidc-test.yml
when: enable_oidc_test_app