Move from distro-based Matrix install to a matrix.org-based one
This commit is contained in:
parent
0ed1030e55
commit
f955aea0d8
19
.ansible/roles/matrix_server/tasks/includes/repos.yaml
Normal file
19
.ansible/roles/matrix_server/tasks/includes/repos.yaml
Normal 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
|
|
@ -1,9 +1,20 @@
|
|||
- name: Synapse package
|
||||
- name: Adding repositories
|
||||
tags:
|
||||
- install
|
||||
- repos
|
||||
- matrix
|
||||
include: includes/repos.yaml
|
||||
loop: "{{ linux_repos }}"
|
||||
loop_control:
|
||||
loop_var: repo
|
||||
|
||||
- name: Installing packages
|
||||
tags:
|
||||
- install
|
||||
- packages
|
||||
- matrix
|
||||
- synapse
|
||||
package:
|
||||
name: matrix-synapse
|
||||
state: latest
|
||||
become: yes
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ linux_packages }}"
|
||||
become: true
|
||||
|
|
8
.ansible/roles/matrix_server/vars/main.yaml
Normal file
8
.ansible/roles/matrix_server/vars/main.yaml
Normal 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
|
Loading…
Reference in a new issue