From ab18fbf94063a7fa8f4a04a416d86101402e52e5 Mon Sep 17 00:00:00 2001 From: Antoine Ouvrard Date: Thu, 17 Dec 2020 14:03:09 +0100 Subject: [PATCH] =?UTF-8?q?ajoute=20la=20nouvelle=20grosse=20machine=20d'e?= =?UTF-8?q?ntrouvert=20+=20red=C3=A9marrage=20du=20greenlight=20quand=20la?= =?UTF-8?q?=20conf=20LDAP=20a=20=C3=A9t=C3=A9=20modifi=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory_prod | 1 + playbook_prod.yml | 9 +++++++++ roles/bbb-enable-ldap-LE/tasks/main.yml | 7 ++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/inventory_prod b/inventory_prod index 16da929..f5b33aa 100644 --- a/inventory_prod +++ b/inventory_prod @@ -2,4 +2,5 @@ jitsi.komuniki.fr ansible_user=debian ansible_become=true visio.imio.be ansible_user=debian ansible_become=true jitsi.entrouvert.com ansible_user=root bbb.komuniki.fr ansible_user=root +xlbbb.komuniki.fr ansible_user=root bbbHostname=bbb.entrouvert.com imio.bbb.komuniki.fr ansible_user=root bbbHostname=imio.bbb.komuniki.fr \ No newline at end of file diff --git a/playbook_prod.yml b/playbook_prod.yml index 63b65c7..a61a741 100644 --- a/playbook_prod.yml +++ b/playbook_prod.yml @@ -37,6 +37,15 @@ tags: - bbb +- hosts: xlbbb.komuniki.fr + roles: + - role: bbb-set-hostname + - role: bbb-disable-test-echo + - role: bbb-enable-ldap-LE + - role: bbb-enable-metrics + tags: + - eo.bbb + - hosts: imio.bbb.komuniki.fr roles: - role: bbb-set-hostname diff --git a/roles/bbb-enable-ldap-LE/tasks/main.yml b/roles/bbb-enable-ldap-LE/tasks/main.yml index 6eec55c..85e251a 100644 --- a/roles/bbb-enable-ldap-LE/tasks/main.yml +++ b/roles/bbb-enable-ldap-LE/tasks/main.yml @@ -29,4 +29,9 @@ lineinfile: path: "/root/greenlight/.env" regexp: "LDAP_BASE=" - line: "LDAP_BASE=o=libre-entreprise" \ No newline at end of file + 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 \ No newline at end of file