summaryrefslogtreecommitdiff
path: root/roles/bbb-enable-ldap-LE/tasks/main.yml
blob: 85e251a918c7b0f2bb87dadb4efa6f3b4aa9bcf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# Activation de l'authentification au ldap Libre Entreprise

- name: ajout du serveur LDAP
  lineinfile:
    path: "/root/greenlight/.env"
    regexp: "LDAP_SERVER="
    line: "LDAP_SERVER=ldap.libre-entreprise.org"

- name: ajout du LDAP_PORT
  lineinfile:
    path: "/root/greenlight/.env"
    regexp: "LDAP_PORT="
    line: "LDAP_PORT=636"

- name: ajout du LDAP_METHOD
  lineinfile:
    path: "/root/greenlight/.env"
    regexp: "LDAP_METHOD="
    line: "LDAP_METHOD=ssl"

- name: ajout du LDAP_UID
  lineinfile:
    path: "/root/greenlight/.env"
    regexp: "LDAP_UID="
    line: "LDAP_UID=uid"

- name: ajout du LDAP_BASE
  lineinfile:
    path: "/root/greenlight/.env"
    regexp: "LDAP_BASE="
    line: "LDAP_BASE=o=libre-entreprise"
  register: result

- name: redémarrage de greenlight
  shell: "cd /root/greenlight; docker-compose down; docker-compose up -d"
  when: result is changed