Intégration hydra-ldap-v1
This commit is contained in:
20
tasks/hydra-ldap.yml
Normal file
20
tasks/hydra-ldap.yml
Normal 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
|
@ -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
|
||||
|
Reference in New Issue
Block a user