40 lines
1019 B
YAML
Executable File
40 lines
1019 B
YAML
Executable File
#!/usr/bin/env ansible-playbook
|
|
# vim:ft=ansible:
|
|
# Webservers
|
|
---
|
|
- hosts: com1.dallas.mgmt.desu.ltd
|
|
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:
|
|
- web/element-web.yml
|
|
- 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
|
|
proxies:
|
|
- location: "~* ^(\/_matrix|\/_synapse|\/client|\/health)"
|
|
pass: http://synapse:8008
|
|
- location: /
|
|
pass: http://element:80
|
|
directives:
|
|
- "client_max_body_size 0"
|
|
tags: [ web, docker, ingress ]
|