From de7947969b184db5bf3c733660d6dc7ee8459f5c Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Sun, 6 Mar 2022 18:37:00 +0100 Subject: [PATCH] add signald --- TODO.md | 3 +-- tasks/main.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index d3db3d3..082cba2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,5 @@ # TODO -- install and configure signald https://gitlab.com/signald/signald -- Setup prometheus somehow (maybe not in the role) +- Setup prometheus (bridge and signald) somehow (maybe not in the role) - Add link to postgres role - Use local bot avatar diff --git a/tasks/main.yml b/tasks/main.yml index 29fcac0..5e8b0e9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,9 +14,21 @@ template: template0 no_log: true +- name: Install the pgp key for the signald repo. + copy: + src: signald-keyring.gpg + dest: /usr/share/keyrings/signald-keyring.gpg + mode: 0644 + +- name: Add synapse repo to source list + ansible.builtin.apt_repository: + repo: "deb [signed-by=/usr/share/keyrings/signald-keyring.gpg] https://updates.signald.org unstable main" + state: present + - name: Install dependencies apt: name: + - signald - python3 - python3-virtualenv - python3-pip @@ -29,6 +41,12 @@ retries: 3 until: apt_result is succeeded +- name: Enable the signald daemon + systemd: + name: signald + state: started + enabled: yes + - name: Create the mautrix-signal user user: name: mautrix-signal