nouveau role BBB qui active les notifications par mails

This commit is contained in:
Antoine Ouvrard
2021-06-24 17:33:20 +02:00
parent cc208f6ebf
commit 6dbce618b1
4 changed files with 119 additions and 40 deletions
+41 -40
View File
@@ -1,41 +1,42 @@
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
66646337313065366164343732383139666337356436363761323461343762396438356163363633 62353066303537663631353566333963376163653566373763373464326536303638356136346438
3066353137613131306439356266386134393638366233340a636662623435653262386539373362 6532386537333734626339623037613133376238653537320a653261376163656663313639663438
32613361333836353062366535356466306138373364326431393765346436333331663764323861 61326463376538323864613433633031653838396462356165313134663135333132363662336531
6233313665303465660a653363343561313634383537376161313033653763303039323264353836 3365386333353237630a393136333330366561333766633266363465636364353139336134343834
62303765343763303431326134643263363366626232633035323931343932653537333833386637 61343230366131393066313766373464336132316439343162666430653934323337326437386336
38363633356535323561656463363364343366383338366333303865313434356135363935303037 36616539323037653333383662353562303436373336663838353037636463363630326432633035
33633161316137633739363866363935343266313434333435653135316132303333393230313838 64356531303735663137386334336164333266303833633438353832616236393761353730333163
30323931336437346462646539313061623832303961306564393332386633373766666264373538 34353831373466333437393263656663353031336431363433393833653465393935633832363335
37373339666538383933373036666665373634636639373363386634373161633436373438663863 38343531383463336233353037356561313066623033623961386636353534623332386464366264
64303162633533383066303263366265363366646263363035373132623539386334336665633238 38663533346530626330383639383234323530363933393439616561313932613238316565633833
37653733656663653165333432393663663437333732626532333834393031643265376335313235 39653463343331313166333465356533366261383338636364666235343932393438313161373632
65303139613032316263313736323330353565333865653332383131363331306132393062333262 61346136303833306530336463346638656361386130613231636530643539623264323263396436
38373564363866333361313763303931353862333537623637313636613330336639333638353734 65313864333562373861663861646432663161336664366539313834373963303930613335393665
34316665393763346665373239633235653138653731353564643238396436346563613737663034 36353739326536346334383462383034306266643962653562636163373666356631643261363030
37303364633938333235646664643436323136353233663231323965656163376239396566386266 31396263333539346634323162643961356530326566626634333233323862376139303234343736
63376335663961396532633531336538333065653833343065626336383136376539613966323762 63316532383432323330326239313063626665363464306230336432366238383361646265313431
35656334323261393731323662346531386235396262346335646333316439303035623039376466 33363265336338343135303430383531366136356133333161643335306263336233656565343765
36376536663966663032393632383462666363366237373965373038343334653131626235636632 31303261383462353036616566356662353739306639376266363137333135396636633731353132
39666335346464636431356234306637313331623662366537393831653334633332313632366230 36326665343361333732346563313739323438306261663830303938353330626466633138303234
36396464333462653665333836393863303531336430623539356465613834373938616436333630 32356464356565633937626361643934336163666561623162393966333265306261623865393466
32336363396139656430383764366637656134373364306531373964623165343839316661366662 61653639653738623631363138616238373632313866663830376466626166356334306234313261
33303066383039353164393866636464636264336334623061373338643762396461636262353935 31346337313038626335343839646534333731633365393564333263333630613538653030303164
31333236656332353937633834336334656637343138653562326266653865326234376133343164 35336331373636623137306436303633376131383738653635323131653733396637373266323239
63376465656134356366613635626333393030386634636438303938303365396331646262303162 38623663303463626432613731643634653664363061316164643965306533356239663630663239
39613739666230623062653833383630626630643635373839626334376164633562393238373230 64623632623238373839393930643130333135623163653334623236383836613962323965633235
65386435393032653036633361383865643031396664383030626662313162386238333130363634 34393930323439383730333237343666636439633237356563363231653130303639393737323032
32393439303430383731326165653962623633643437326465386537366363643166666461323165 62663534653265626130353163626336633663333563653865663065316366333862643263613237
62313266376163636165306630623337626566616364363063363566326533353432613137363331 33396266363165653732336638336632333630363035623662373664313563636237326261353564
35613465393737336662306230616165376234616232313937336635356461396439383835306331 66343430323566343161633431636631616634393531623339346237333030306533393033353332
38346436313634383937396365353438646134613462613535343363303462623235343431643539 31386166613365613435636233343930653664393861646465386236393261656439363330323134
61653330396235303064643565303963663537313832346437656231643564663134303834366261 62303139653336663961356434313965393463363864316662356330626565373261363330646536
37626638353962366537306432373961643736363761633134313163346664623030346462343432 33626235343434346130363434306661343161383235613934656565363232393539303036306130
39633734323366363935323365393663666434353061393334633731373736623034316466316636 65323137663636306436333865366131326163653235366233666531303337346536343666636462
36356236356662623665663037306138316565343833393665623862626435626537666262386165 32383964346232623662366133323230373364316435373562646263313838656664633066386238
61666563303839376134623132636461623561386237373733353936303766663235383936643035 65633539636137616565343134666631316266333135373062633533613961363538346531313166
30363065636236626565363162326631343134326465656239373465666139323038643565386666 64306562346330303465623930323735343831383733376362373966663064633134363239633030
31386238623665363539643639636636313538613538653839623334643164643436386637636235 39666564386330303461323030643536643031363431336163623238626539353163663134666235
38363339376633353837633134353062303532306564366162336661373130626336623138656562 30666530656537326334663232376464306336366635656466653332323462333732616631383763
30326339663934323363336535363966333466353163303633633339636233346362373030393439 64393137323632373038343762633761373263393037313061323363353130343539336261363732
34396666383061633534 63646263623534613334623435383834343733643363333962313331353238616535656666316139
30363234626464323031383263666636656132353063306439326566623236343330
+1
View File
@@ -40,6 +40,7 @@
- role: bbb-disable-test-echo - role: bbb-disable-test-echo
- role: bbb-enable-sip - role: bbb-enable-sip
- role: bbb-enable-external-coturn - role: bbb-enable-external-coturn
- role: bbb-enable-nrd-smtp
tags: tags:
- komki.bbb - komki.bbb
@@ -0,0 +1,3 @@
---
- name: restart greenlight
shell: "cd /root/greenlight; docker-compose down; docker-compose up -d"
+74
View File
@@ -0,0 +1,74 @@
---
# Configure le relay SMTP Gandi de Néréide pour que BBB envoie des mails
- name: ajout du serveur SMTP
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_SERVER="
line: "SMTP_SERVER=mail.gandi.net"
notify:
- restart greenlight
- name: ajout du SMTP_PORT
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_PORT="
line: "SMTP_PORT=587"
notify:
- restart greenlight
- name: ajout du SMTP_DOMAIN
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_DOMAIN="
line: "SMTP_DOMAIN=nereide.fr"
notify:
- restart greenlight
- name: ajout du SMTP_USERNAME
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_USERNAME="
line: "SMTP_USERNAME=relay-smtp@nereide.fr"
notify:
- restart greenlight
- name: ajout du SMTP_PASSWORD
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_PASSWORD="
line: "SMTP_PASSWORD={{ vault_smtp_nrd_pass }}"
notify:
- restart greenlight
- name: ajout du SMTP_AUTH
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_AUTH="
line: "SMTP_AUTH=plain"
notify:
- restart greenlight
- name: ajout du SMTP_STARTTLS_AUTO
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_STARTTLS_AUTO="
line: "SMTP_STARTTLS_AUTO=true"
notify:
- restart greenlight
- name: ajout du SMTP_SENDER
lineinfile:
path: "/root/greenlight/.env"
regexp: "^SMTP_SENDER="
line: "SMTP_SENDER=no-reply@bbb.fr"
notify:
- restart greenlight
- name: Activation des notifications par mails
lineinfile:
path: "/root/greenlight/.env"
insertafter: "^# ALLOW_MAIL_NOTIFICATIONS=true"
line: "ALLOW_MAIL_NOTIFICATIONS=true"
notify:
- restart greenlight