diff options
| author | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2020-04-03 13:46:05 +0200 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2020-04-03 13:46:05 +0200 |
| commit | ee820587b48ae9c5a48200649cc69aa4a32806e4 (patch) | |
| tree | 08cacbcc4f33ae251f373329f735db0e91934810 | |
| parent | a6fa584a39b409da9cf86cc433db1fb14d0afb46 (diff) | |
WIP - ajout de la configuration de l'authentification jitsi
| -rw-r--r-- | playbook.yml | 7 | ||||
| -rw-r--r-- | roles/auth/tasks/main.yml | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/playbook.yml b/playbook.yml index ec63a85..3155275 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,3 +1,10 @@ - hosts: pp.visio.nereide.fr + vars_prompt: + - name: username + prompt: "Saisir le nom d'utilisateur" + private: no + - name: password + prompt: "Saisir le mot de passe" roles: - role: common + - role: auth diff --git a/roles/auth/tasks/main.yml b/roles/auth/tasks/main.yml new file mode 100644 index 0000000..39adbb5 --- /dev/null +++ b/roles/auth/tasks/main.yml @@ -0,0 +1,9 @@ + +- name: Conf Jitsi - Activation de l'authentification prosody + replace: + path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua + regexp: 'authentication = "anonymous"' + replace: 'authentication = "internal_plain"' + +- name: Conf Jitsi - Création de l'utilisateur prosody + shell: prosodyctl register {{ username }} {{ inventory_hostname }} {{ password }} |
