Move from distro-based Matrix install to a matrix.org-based one

This commit is contained in:
Scott Wallace 2019-09-19 19:09:41 +01:00
parent 0ed1030e55
commit f955aea0d8
3 changed files with 43 additions and 5 deletions

View file

@ -0,0 +1,19 @@
- name: includes/repos.yaml
tags:
- install
- repos
- matrix
block:
- name: "Apt repo: Import GPG key: {{ repo.name }}"
apt_key:
state: present
url: "{{ repo.key }}"
when: repo.key
become: true
- name: "Apt repo: Add repo: {{ repo.name }}"
apt_repository:
state: present
repo: "{{ repo.data }}"
update_cache: yes
become: true

View file

@ -1,9 +1,20 @@
- name: Synapse package - name: Adding repositories
tags: tags:
- install - install
- repos
- matrix
include: includes/repos.yaml
loop: "{{ linux_repos }}"
loop_control:
loop_var: repo
- name: Installing packages
tags:
- install
- packages
- matrix - matrix
- synapse
package: package:
name: matrix-synapse name: "{{ item }}"
state: latest state: present
become: yes loop: "{{ linux_packages }}"
become: true

View file

@ -0,0 +1,8 @@
---
linux_repos:
- name: 'Matrix Synapse'
data: 'deb https://packages.matrix.org/debian disco main'
key: 'https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg'
linux_packages:
- matrix-synapse-py3