2021-08-13 08:05:57 +00:00
|
|
|
---
|
|
|
|
- name: "Set up a Matrix server"
|
|
|
|
hosts: "{{ target if target is defined else 'matrix_servers' }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- roles/matrix-synapse/vars/workers.yml
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- matrix-awx
|
|
|
|
- matrix-base
|
|
|
|
- matrix-dynamic-dns
|
|
|
|
- matrix-mailer
|
|
|
|
- matrix-postgres
|
|
|
|
- matrix-redis
|
|
|
|
- matrix-corporal
|
|
|
|
- matrix-bridge-appservice-discord
|
|
|
|
- matrix-bridge-appservice-slack
|
|
|
|
- matrix-bridge-appservice-webhooks
|
|
|
|
- matrix-bridge-appservice-irc
|
2021-08-21 15:32:45 +00:00
|
|
|
- matrix-bridge-beeper-linkedin
|
2021-08-13 08:05:57 +00:00
|
|
|
- matrix-bridge-mautrix-facebook
|
|
|
|
- matrix-bridge-mautrix-hangouts
|
2021-10-12 11:45:04 +00:00
|
|
|
- matrix-bridge-mautrix-googlechat
|
2021-08-13 08:05:57 +00:00
|
|
|
- matrix-bridge-mautrix-instagram
|
|
|
|
- matrix-bridge-mautrix-signal
|
|
|
|
- matrix-bridge-mautrix-telegram
|
|
|
|
- matrix-bridge-mautrix-whatsapp
|
|
|
|
- matrix-bridge-mx-puppet-discord
|
|
|
|
- matrix-bridge-mx-puppet-groupme
|
|
|
|
- matrix-bridge-mx-puppet-steam
|
|
|
|
- matrix-bridge-mx-puppet-skype
|
|
|
|
- matrix-bridge-mx-puppet-slack
|
|
|
|
- matrix-bridge-mx-puppet-twitter
|
|
|
|
- matrix-bridge-mx-puppet-instagram
|
|
|
|
- matrix-bridge-sms
|
|
|
|
- matrix-bridge-heisenbridge
|
|
|
|
- matrix-bot-matrix-reminder-bot
|
|
|
|
- matrix-bot-go-neb
|
|
|
|
- matrix-bot-mjolnir
|
|
|
|
- matrix-synapse
|
|
|
|
- matrix-synapse-admin
|
|
|
|
- matrix-prometheus-node-exporter
|
|
|
|
- matrix-prometheus
|
|
|
|
- matrix-grafana
|
|
|
|
- matrix-registration
|
|
|
|
- matrix-client-element
|
|
|
|
- matrix-client-hydrogen
|
|
|
|
- matrix-jitsi
|
|
|
|
- matrix-ma1sd
|
|
|
|
- matrix-dimension
|
|
|
|
- matrix-etherpad
|
|
|
|
- matrix-email2matrix
|
|
|
|
- matrix-sygnal
|
|
|
|
- matrix-nginx-proxy
|
|
|
|
- matrix-coturn
|
|
|
|
- matrix-aux
|
|
|
|
- matrix-postgres-backup
|
|
|
|
- matrix-prometheus-postgres-exporter
|
2021-08-14 13:12:47 +00:00
|
|
|
- matrix-common-after
|
2021-04-18 09:55:40 +00:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Ensure web-user is present
|
|
|
|
user:
|
|
|
|
name: "{{ web_user }}"
|
|
|
|
state: present
|
|
|
|
system: yes
|
|
|
|
register: web_user_res
|
|
|
|
tags: [ setup-caddy, setup-all, start ]
|
|
|
|
- name: Ensure directory for revproxy config is present
|
|
|
|
file:
|
|
|
|
path: "{{ revproxy_autoload_dir }}/matrix"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ web_user_res.uid }}"
|
|
|
|
group: "{{ web_user_res.group }}"
|
|
|
|
mode: 0750
|
|
|
|
tags: [ setup-caddy, setup-all, start ]
|
|
|
|
- name: Template reverse proxy configuration
|
|
|
|
template:
|
|
|
|
src: Caddyfile.j2
|
|
|
|
dest: "{{ revproxy_autoload_dir }}/matrix/Caddyfile"
|
|
|
|
owner: "{{ web_user_res.uid }}"
|
|
|
|
group: "{{ web_user_res.group }}"
|
|
|
|
mode: 0640
|
|
|
|
tags: [ setup-caddy, setup-all, start ]
|
|
|
|
- name: Restart reverse proxy
|
|
|
|
docker_container:
|
|
|
|
name: web
|
|
|
|
state: started
|
|
|
|
restart: yes
|