author | Luke Hoersten <luke@hoersten.org> |
Tue, 09 Jun 2020 14:39:54 -0500 | |
changeset 38 | b4e705f4cda4 |
parent 37 | 2ef98b7b40d4 |
child 39 | 90b1b7c4be70 |
permissions | -rw-r--r-- |
36
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
37
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
3 |
- name: add debian backports keys |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
4 |
become: yes |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
5 |
apt_key: |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
6 |
keyserver: "keyserver.ubuntu.com " |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
7 |
id: "{{item}}" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
8 |
loop: |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
9 |
- "04EE7237B7D453EC" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
10 |
- "648ACFD622F3D138" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
11 |
|
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
12 |
- name: add matrix repo |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
13 |
become: yes |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
14 |
apt_repository: repo="deb http://deb.debian.org/debian buster-backports main" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
15 |
|
36
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
- name: install matrix synapse |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
become: yes |
37
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
18 |
apt: |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
19 |
name: "matrix-synapse" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
20 |
state: "latest" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
21 |
default_release: "buster-backports" |
2ef98b7b40d4
Updated to buster-backports matrix.
Luke Hoersten <luke@hoersten.org>
parents:
36
diff
changeset
|
22 |
notify: restart matrix synapse service |
36
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
|
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
- name: configure matrix synapse |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
25 |
become: yes |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
26 |
template: |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
27 |
src: "homeserver.yaml.j2" |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
28 |
dest: "/etc/matrix-synapse/homeserver.yaml" |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
29 |
notify: restart matrix synapse service |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
30 |
|
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
31 |
- name: configure matrix synapse server name |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
32 |
become: yes |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
33 |
template: |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
34 |
src: "server_name.yaml.j2" |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
35 |
dest: "/etc/matrix-synapse/conf.d/server_name.yaml" |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
36 |
notify: restart matrix synapse service |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
37 |
|
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
38 |
- name: ensure matrix synapse is started |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
39 |
become: yes |
a8627367c7be
Add matrix synapse server role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
40 |
systemd: name="matrix-synapse.service" enabled="yes" state="started" |