add signald

This commit is contained in:
histausse 2022-03-06 18:37:00 +01:00
parent caff5f111e
commit de7947969b
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 19 additions and 2 deletions

View file

@ -1,6 +1,5 @@
# TODO # TODO
- install and configure signald https://gitlab.com/signald/signald - Setup prometheus (bridge and signald) somehow (maybe not in the role)
- Setup prometheus somehow (maybe not in the role)
- Add link to postgres role - Add link to postgres role
- Use local bot avatar - Use local bot avatar

View file

@ -14,9 +14,21 @@
template: template0 template: template0
no_log: true 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 - name: Install dependencies
apt: apt:
name: name:
- signald
- python3 - python3
- python3-virtualenv - python3-virtualenv
- python3-pip - python3-pip
@ -29,6 +41,12 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
- name: Enable the signald daemon
systemd:
name: signald
state: started
enabled: yes
- name: Create the mautrix-signal user - name: Create the mautrix-signal user
user: user:
name: mautrix-signal name: mautrix-signal