This repository has been archived on 2026-05-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
visio_nrd/roles/bbb-enable-ldap-LE/tasks/main.yml
T

37 lines
900 B
YAML

---
# 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