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