2019-10-12 14:46:57 +01:00
|
|
|
- name: "Matrix: Repositories"
|
2019-05-27 12:56:29 +01:00
|
|
|
tags:
|
|
|
|
- install
|
2019-09-19 19:09:41 +01:00
|
|
|
- repos
|
|
|
|
- matrix
|
|
|
|
include: includes/repos.yaml
|
|
|
|
loop: "{{ linux_repos }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: repo
|
|
|
|
|
2019-10-12 14:46:57 +01:00
|
|
|
- name: "Matrix: Packages"
|
2019-09-19 19:09:41 +01:00
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
- packages
|
2019-05-27 12:56:29 +01:00
|
|
|
- matrix
|
|
|
|
package:
|
2019-09-19 19:09:41 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
loop: "{{ linux_packages }}"
|
|
|
|
become: true
|
2019-10-12 13:52:04 +01:00
|
|
|
|
2019-10-12 14:46:57 +01:00
|
|
|
- name: "Matrix: Configuration"
|
2019-10-12 13:52:04 +01:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- matrix
|
2019-10-12 14:46:57 +01:00
|
|
|
block:
|
|
|
|
- name: "Matrix: Configuration: homeserver.yaml"
|
|
|
|
template:
|
|
|
|
src: "templates/homeserver.yaml.j2"
|
|
|
|
dest: "/etc/matrix-synapse/homeserver.yaml"
|
|
|
|
mode: "0400"
|
|
|
|
owner: "matrix-synapse"
|
|
|
|
group: "nogroup"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Matrix: Configuration: server_name.yaml"
|
|
|
|
copy:
|
|
|
|
dest: "/etc/matrix-synapse/conf.d/server_name.yaml"
|
|
|
|
content: "server_name: home.suborbit.com"
|
|
|
|
mode: "0400"
|
|
|
|
owner: "matrix-synapse"
|
|
|
|
group: "nogroup"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Matrix: Configuration: log.yaml"
|
|
|
|
copy:
|
|
|
|
dest: "/etc/matrix-synapse/log.yaml"
|
|
|
|
src: "files/log.yaml"
|
|
|
|
mode: "0400"
|
|
|
|
owner: "matrix-synapse"
|
|
|
|
group: "nogroup"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Matrix: Configuration: dhparam.pem"
|
|
|
|
copy:
|
|
|
|
dest: "/etc/matrix-synapse/dhparam.pem"
|
|
|
|
content: "{{ dhparam }}"
|
|
|
|
mode: "0400"
|
|
|
|
owner: "matrix-synapse"
|
|
|
|
group: "nogroup"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Matrix: Configuration: homeserver.signing.key"
|
|
|
|
copy:
|
|
|
|
dest: "/etc/matrix-synapse/homeserver.signing.key"
|
|
|
|
content: "{{ signing_key }}"
|
|
|
|
mode: "0400"
|
|
|
|
owner: "matrix-synapse"
|
|
|
|
group: "nogroup"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Matrix: Service"
|
|
|
|
tags:
|
|
|
|
- matrix
|
|
|
|
systemd:
|
|
|
|
name: "matrix-synapse"
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
2019-10-12 13:52:04 +01:00
|
|
|
become: yes
|