mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-28 20:07:00 +02:00
4cc100ab02
This changes the site to run on Debian 10 instead of Ubuntu 16.04. It also fully converts the previous Salt setup to use Ansible instead. Most of this was a relatively straightforward conversion, and it should be very close to equivalent. One notable difference is that I removed the setup for the "monitoring" server, since I wasn't confident that the way of setting up self-hosted Sentry and Grafana was working any more. I'll look to re-add that at some point, but it's not urgent.
22 lines
423 B
YAML
22 lines
423 B
YAML
---
|
|
- name: Add site config file
|
|
template:
|
|
src: tildes.conf.jinja2
|
|
dest: /etc/nginx/sites-available/tildes.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- Reload nginx
|
|
|
|
- name: Enable site in nginx
|
|
file:
|
|
path: /etc/nginx/sites-enabled/tildes.conf
|
|
src: /etc/nginx/sites-available/tildes.conf
|
|
state: link
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify:
|
|
- Reload nginx
|