This commit is contained in:
Antoine Ouvrard
2021-05-17 10:31:00 +02:00
parent d500df95cb
commit 91e3af1eda
6 changed files with 12 additions and 17 deletions
+2
View File
@@ -3,3 +3,5 @@ bbb_sip_provider: sip5.ovh.fr
bbb_sip_telnum_for_user: 0972552599 bbb_sip_telnum_for_user: 0972552599
bbb_sip_username: 0033972552599 bbb_sip_username: 0033972552599
bbb_sip_password: "{{ vault_bbb_EO_sip_password }}" bbb_sip_password: "{{ vault_bbb_EO_sip_password }}"
coturn_hostname: origan.champs-libres.be
coturn_secret: "{{ vault_coturn_secret }}"
+1
View File
@@ -48,6 +48,7 @@
- role: bbb-enable-ldap-LE - role: bbb-enable-ldap-LE
- role: bbb-enable-metrics - role: bbb-enable-metrics
- role: bbb-enable-sip - role: bbb-enable-sip
- role: bbb-enable-external-coturn
tags: tags:
- eo.bbb - eo.bbb
@@ -1,4 +1,5 @@
--- ---
# yamllint disable rule:line-length
- name: vérification des variables obligatoire - name: vérification des variables obligatoire
fail: fail:
msg: | msg: |
@@ -11,7 +12,6 @@
blockinfile: blockinfile:
path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
marker: "<!-- {mark} ANSIBLE MANAGED turn1 -->" marker: "<!-- {mark} ANSIBLE MANAGED turn1 -->"
# yamllint disable-line rule:line-length
insertbefore: ' <bean id="stunTurnService" class="org.bigbluebutton.web.services.turn.StunTurnService">' insertbefore: ' <bean id="stunTurnService" class="org.bigbluebutton.web.services.turn.StunTurnService">'
block: | block: |
<bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer"> <bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer">
@@ -26,7 +26,6 @@
blockinfile: blockinfile:
path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
marker: "<!-- {mark} ANSIBLE MANAGED turn2 -->" marker: "<!-- {mark} ANSIBLE MANAGED turn2 -->"
# yamllint disable-line rule:line-length
insertbefore: ' <bean id="stunTurnService" class="org.bigbluebutton.web.services.turn.StunTurnService">' insertbefore: ' <bean id="stunTurnService" class="org.bigbluebutton.web.services.turn.StunTurnService">'
block: | block: |
<bean id="turn2" class="org.bigbluebutton.web.services.turn.TurnServer"> <bean id="turn2" class="org.bigbluebutton.web.services.turn.TurnServer">
@@ -40,9 +39,7 @@
- name: ajout du server stun - name: ajout du server stun
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
# yamllint disable-line rule:line-length
regexp: ' <constructor-arg index="0" value="stun:stun.freeswitch.org"/>' regexp: ' <constructor-arg index="0" value="stun:stun.freeswitch.org"/>'
# yamllint disable-line rule:line-length
line: ' <constructor-arg index="0" value="stun:{{ coturn_hostname }}"/>' line: ' <constructor-arg index="0" value="stun:{{ coturn_hostname }}"/>'
notify: notify:
- restart bigbluebutton - restart bigbluebutton
@@ -50,9 +47,7 @@
- name: activation du server turn - name: activation du server turn
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
# yamllint disable-line rule:line-length
regexp: ' <!--ref bean="turn1" /-->' regexp: ' <!--ref bean="turn1" /-->'
# yamllint disable-line rule:line-length
line: ' <ref bean="turn1" />' line: ' <ref bean="turn1" />'
notify: notify:
- restart bigbluebutton - restart bigbluebutton
@@ -60,9 +55,8 @@
- name: activation du server turns - name: activation du server turns
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml path: /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
# yamllint disable-line rule:line-length
regexp: ' <!--ref bean="turn2" /-->' regexp: ' <!--ref bean="turn2" /-->'
# yamllint disable-line rule:line-length
line: ' <ref bean="turn2" />' line: ' <ref bean="turn2" />'
notify: notify:
- restart bigbluebutton - restart bigbluebutton
# yamllint enable rule:line-length
@@ -18,10 +18,11 @@
state: directory state: directory
path: /usr/local/bin/ path: /usr/local/bin/
mode: 0644 mode: 0644
- name: "télécharge de chromedriver pour la version # yamllint disable rule:line-length
{{ _latest_release.content }}" - name: "télécharge de chromedriver pour la version {{ _latest_release.content }}"
unarchive: unarchive:
src: "http://chromedriver.storage.googleapis.com/{{ _latest_release.content }}/chromedriver_linux64.zip" src: "http://chromedriver.storage.googleapis.com/{{ _latest_release.content }}/chromedriver_linux64.zip"
# yamllint enable rule:line-length
dest: /usr/local/bin dest: /usr/local/bin
mode: "755" mode: "755"
remote_src: true remote_src: true
+2 -4
View File
@@ -1,4 +1,5 @@
--- ---
# yamllint disable rule:line-length
- name: vérification des variables obligatoire - name: vérification des variables obligatoire
fail: fail:
msg: | msg: |
@@ -20,20 +21,16 @@
- restart prosody - restart prosody
- name: utilisateur jibri pour prosody (auth) - name: utilisateur jibri pour prosody (auth)
# yamllint disable-line rule:line-length
command: prosodyctl register {{ item.user }} auth.{{ inventory_hostname }} {{ item.password }} command: prosodyctl register {{ item.user }} auth.{{ inventory_hostname }} {{ item.password }}
args: args:
# Prosody remplace les points par des '%2e' dans le chemin du fichier # Prosody remplace les points par des '%2e' dans le chemin du fichier
# yamllint disable-line rule:line-length
creates: /var/lib/prosody/{{ 'auth%2e'+inventory_hostname | replace('.', '%2e') }}/accounts/{{ item.user }}.dat creates: /var/lib/prosody/{{ 'auth%2e'+inventory_hostname | replace('.', '%2e') }}/accounts/{{ item.user }}.dat
loop: "{{ jibri_users }}" loop: "{{ jibri_users }}"
- name: utilisateur jibri pour prosody (recorder) - name: utilisateur jibri pour prosody (recorder)
# yamllint disable-line rule:line-length
command: prosodyctl register {{ item.user }}-record recorder.{{ inventory_hostname }} {{ item.password }} command: prosodyctl register {{ item.user }}-record recorder.{{ inventory_hostname }} {{ item.password }}
args: args:
# Prosody remplace les points par des '%2e' dans le chemin du fichier # Prosody remplace les points par des '%2e' dans le chemin du fichier
# yamllint disable-line rule:line-length
creates: /var/lib/prosody/{{ 'auth%2e'+inventory_hostname | replace('.', '%2e') }}/accounts/{{ item.user }}.dat creates: /var/lib/prosody/{{ 'auth%2e'+inventory_hostname | replace('.', '%2e') }}/accounts/{{ item.user }}.dat
loop: "{{ jibri_users }}" loop: "{{ jibri_users }}"
@@ -60,3 +57,4 @@
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
insertbefore: "[^?]// List of undocumented" insertbefore: "[^?]// List of undocumented"
line: "hiddenDomain: 'recorder.{{ inventory_hostname }}'," line: "hiddenDomain: 'recorder.{{ inventory_hostname }}',"
# yamllint enable rule:line-length
@@ -1,4 +1,5 @@
--- ---
# yamllint disable rule:line-length
- name: copy des fichiers de personnalisation de la page d'accueil de jitsi - name: copy des fichiers de personnalisation de la page d'accueil de jitsi
copy: copy:
src: '../file/{{ item[0] }}' src: '../file/{{ item[0] }}'
@@ -22,9 +23,7 @@
line: '{{ item[1] }}' line: '{{ item[1] }}'
loop: loop:
- ['APP_NAME: ', " APP_NAME: 'Komuniki',"] - ['APP_NAME: ', " APP_NAME: 'Komuniki',"]
# yamllint disable-line rule:line-length
- ['DEFAULT_LOGO_URL: ', " DEFAULT_LOGO_URL: 'images/logo-komuniki.svg',"] - ['DEFAULT_LOGO_URL: ', " DEFAULT_LOGO_URL: 'images/logo-komuniki.svg',"]
# yamllint disable-line rule:line-length
- ['DEFAULT_WELCOME_PAGE_LOGO_URL: ', " DEFAULT_WELCOME_PAGE_LOGO_URL: 'images/logo-komuniki-txt.svg',"] - ['DEFAULT_WELCOME_PAGE_LOGO_URL: ', " DEFAULT_WELCOME_PAGE_LOGO_URL: 'images/logo-komuniki-txt.svg',"]
# yamllint disable-line rule:line-length
- ['JITSI_WATERMARK_LINK: ', " JITSI_WATERMARK_LINK: 'https://komuniki.fr',"] - ['JITSI_WATERMARK_LINK: ', " JITSI_WATERMARK_LINK: 'https://komuniki.fr',"]
# yamllint enable rule:line-length