install synapse from synapse repo
This commit is contained in:
parent
91a94422f8
commit
35dd9b5a04
3 changed files with 37 additions and 0 deletions
6
books/matrix.yml
Normal file
6
books/matrix.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: matrix
|
||||
roles:
|
||||
- synapse
|
||||
|
BIN
roles/synapse/files/matrix-org-archive-keyring.gpg
Normal file
BIN
roles/synapse/files/matrix-org-archive-keyring.gpg
Normal file
Binary file not shown.
31
roles/synapse/tasks/main.yml
Normal file
31
roles/synapse/tasks/main.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- name: Install apt transport https
|
||||
apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
state: latest
|
||||
update_cache: true
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- name: Install the pgp key for the synapse repo
|
||||
copy:
|
||||
src: matrix-org-archive-keyring.gpg
|
||||
dest: /usr/share/keyrings/matrix-org-archive-keyring.gpg
|
||||
mode: 0644
|
||||
|
||||
- name: Add synapse repo to source list
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ {{ ansible_facts['lsb']['codename'] }} main"
|
||||
state: present
|
||||
|
||||
- name: Install synapse
|
||||
apt:
|
||||
name:
|
||||
- matrix-synapse-py3
|
||||
state: latest
|
||||
update_cache: true
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
Loading…
Reference in a new issue