From 4a3c11d719701779340602005b3175d186c2e083 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 5 Feb 2019 11:39:58 +0100 Subject: [PATCH] Beggining of Matrix Riot server --- hosts | 2 +- matrix-riot-web.yml | 6 ++++++ roles/matrix-riot-web/README.md | 7 +++++++ roles/matrix-riot-web/tasks/main.yml | 23 +++++++++++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 matrix-riot-web.yml create mode 100644 roles/matrix-riot-web/README.md create mode 100644 roles/matrix-riot-web/tasks/main.yml diff --git a/hosts b/hosts index 5648e0e..2e9e5ef 100644 --- a/hosts +++ b/hosts @@ -4,7 +4,7 @@ horus ansible_host=10.128.0.1 [ovh-container] -ansible-awx ansible_host=10.128.0.53 +matrix-riot-web ansible_host=10.128.0.53 services-bdd.adm.auro.re phabricator.adm.auro.re horus-wiki ansible_host=10.128.0.51 diff --git a/matrix-riot-web.yml b/matrix-riot-web.yml new file mode 100644 index 0000000..d27771f --- /dev/null +++ b/matrix-riot-web.yml @@ -0,0 +1,6 @@ +--- +# Install Riot web on corresponding containers +- hosts: matrix-riot-web + roles: + - matrix-riot-web + diff --git a/roles/matrix-riot-web/README.md b/roles/matrix-riot-web/README.md new file mode 100644 index 0000000..7bf9726 --- /dev/null +++ b/roles/matrix-riot-web/README.md @@ -0,0 +1,7 @@ +# Rôle Riot Web + +Ce rôle Ansible permet d'installer le client Web Riot. + +Il doit être exécuté en tant que super-utilisateur +(option `-b` pour `--become`). + diff --git a/roles/matrix-riot-web/tasks/main.yml b/roles/matrix-riot-web/tasks/main.yml new file mode 100644 index 0000000..f9fcc67 --- /dev/null +++ b/roles/matrix-riot-web/tasks/main.yml @@ -0,0 +1,23 @@ +--- +# Based on https://github.com/vector-im/riot-web#desktop-installation-for-debian-stretch + +- name: Make APT support HTTPS protocol + apt: + name: apt-transport-https + update_cache: yes + +- name: Configure Riot repository + apt_repository: + repo: "deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main" + +- name: Configure Riot repository key + apt_key: + id: E019645248E8F4A1 + url: https://riot.im/packages/debian/repo-key.asc + +- name: Install Riot web + apt: + name: riot-web + update_cache: yes + +# TODO host web page