2021-10-02 22:03:22 -05:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
# Webservers
|
|
|
|
---
|
2021-10-15 19:03:55 -05:00
|
|
|
- hosts: com1.dallas.mgmt.desu.ltd
|
2022-02-15 15:19:34 -06:00
|
|
|
gather_facts: no
|
2021-10-02 22:03:22 -05:00
|
|
|
module_defaults:
|
|
|
|
docker_container:
|
|
|
|
state: started
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
pre_tasks:
|
|
|
|
- name: ensure docker network
|
|
|
|
docker_network: name=web
|
|
|
|
tags: [ docker ]
|
|
|
|
tasks:
|
|
|
|
- name: include tasks for applications
|
|
|
|
include_tasks: tasks/{{ item }}
|
|
|
|
with_items:
|
2021-10-02 22:50:25 -05:00
|
|
|
- web/element-web.yml
|
2021-10-02 22:03:22 -05:00
|
|
|
- web/synapse.yml
|
|
|
|
tags: [ always ]
|
|
|
|
roles:
|
|
|
|
- role: backup
|
|
|
|
vars:
|
|
|
|
backup_s3backup_list_extra:
|
|
|
|
- /data
|
|
|
|
tags: [ backup ]
|
|
|
|
- role: ingress
|
|
|
|
vars:
|
|
|
|
ingress_servers:
|
|
|
|
- name: matrix.desu.ltd
|
2021-10-02 22:11:10 -05:00
|
|
|
proxies:
|
2021-10-03 11:51:34 -05:00
|
|
|
- location: "~* ^(\/_matrix|\/_synapse|\/client|\/health)"
|
2021-10-02 22:11:10 -05:00
|
|
|
pass: http://synapse:8008
|
|
|
|
- location: /
|
2021-10-02 22:50:25 -05:00
|
|
|
pass: http://element:80
|
2021-10-02 22:03:22 -05:00
|
|
|
directives:
|
|
|
|
- "client_max_body_size 0"
|
|
|
|
tags: [ web, docker, ingress ]
|