mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-26 11:10:54 +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.
30 lines
725 B
YAML
30 lines
725 B
YAML
---
|
|
- name: Check if site-icons.css file exists
|
|
stat:
|
|
path: "{{ app_dir }}/static/css/site-icons.css"
|
|
register: site_icons_css_file
|
|
|
|
# webassets will crash the site if this file doesn't exist
|
|
- name: Create site-icons.css file
|
|
file:
|
|
path: "{{ app_dir }}/static/css/site-icons.css"
|
|
state: touch
|
|
owner: "{{ app_username }}"
|
|
group: "{{ app_username }}"
|
|
mode: 0644
|
|
when: not site_icons_css_file.stat.exists
|
|
|
|
- name: Create systemd service file
|
|
template:
|
|
src: webassets.service.jinja2
|
|
dest: /etc/systemd/system/webassets.service
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Start and enable webassets service
|
|
service:
|
|
name: webassets
|
|
state: started
|
|
enabled: true
|