ansible/roles/synapse/tasks/main.yml

32 lines
801 B
YAML
Raw Normal View History

2021-07-27 03:34:14 +02:00
---
- 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