matrix-docker-ansible-deploy/setup.yml

84 lines
2.4 KiB
YAML
Raw Normal View History

2017-07-31 20:07:30 +00:00
---
- name: "Set up a Matrix server"
hosts: "{{ target if target is defined else 'matrix_servers' }}"
2017-07-31 20:07:30 +00:00
become: true
vars_files:
- roles/matrix-synapse/vars/workers.yml
2017-07-31 20:07:30 +00:00
roles:
2021-02-20 09:19:17 +00:00
- matrix-awx
- matrix-base
2020-10-17 04:21:58 +00:00
- matrix-dynamic-dns
- matrix-mailer
- matrix-postgres
2020-09-10 11:39:00 +00:00
- matrix-redis
- matrix-corporal
- matrix-bridge-appservice-discord
2019-06-10 14:52:48 +00:00
- matrix-bridge-appservice-slack
2020-01-09 16:00:03 +00:00
- matrix-bridge-appservice-webhooks
- matrix-bridge-appservice-irc
- matrix-bridge-mautrix-facebook
- matrix-bridge-mautrix-hangouts
- matrix-bridge-mautrix-instagram
2020-10-22 21:29:34 +00:00
- matrix-bridge-mautrix-signal
- matrix-bridge-mautrix-telegram
- matrix-bridge-mautrix-whatsapp
2020-06-11 15:54:36 +00:00
- matrix-bridge-mx-puppet-discord
2021-02-13 04:13:30 +00:00
- matrix-bridge-mx-puppet-groupme
2020-07-01 11:46:58 +00:00
- matrix-bridge-mx-puppet-steam
2020-03-17 00:33:11 +00:00
- matrix-bridge-mx-puppet-skype
2020-04-12 14:17:30 +00:00
- matrix-bridge-mx-puppet-slack
- matrix-bridge-mx-puppet-twitter
2020-06-27 10:40:27 +00:00
- matrix-bridge-mx-puppet-instagram
- matrix-bridge-sms
2021-05-12 12:24:39 +00:00
- matrix-bridge-heisenbridge
2020-07-20 11:13:08 +00:00
- matrix-bot-matrix-reminder-bot
2021-03-11 18:23:01 +00:00
- matrix-bot-go-neb
2021-03-24 03:46:08 +00:00
- matrix-bot-mjolnir
- matrix-synapse
- matrix-synapse-admin
- matrix-prometheus-node-exporter
- matrix-prometheus
- matrix-grafana
2020-09-01 10:46:05 +00:00
- matrix-registration
- matrix-client-element
2021-05-15 09:23:36 +00:00
- matrix-client-hydrogen
2020-03-23 15:19:15 +00:00
- matrix-jitsi
- matrix-ma1sd
2019-03-07 05:22:08 +00:00
- matrix-dimension
2021-01-20 23:06:35 +00:00
- matrix-etherpad
2019-08-05 10:06:49 +00:00
- matrix-email2matrix
- matrix-sygnal
- matrix-nginx-proxy
2019-03-19 08:24:39 +00:00
- matrix-coturn
- matrix-aux
- matrix-postgres-backup
- matrix-prometheus-postgres-exporter
- matrix-common-after
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 ]