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.
24 lines
556 B
YAML
24 lines
556 B
YAML
---
|
|
- name: Install packages needed by Ansible community plugins
|
|
pip:
|
|
executable: pip3
|
|
name: cryptography
|
|
|
|
- name: Create directory for certificate
|
|
file:
|
|
path: "{{ ssl_cert_dir }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Create a private key
|
|
community.crypto.openssl_privatekey:
|
|
path: "{{ ssl_private_key_path }}"
|
|
|
|
- name: Create a self-signed certificate
|
|
community.crypto.x509_certificate:
|
|
path: "{{ ssl_cert_path }}"
|
|
privatekey_path: "{{ ssl_private_key_path }}"
|
|
provider: selfsigned
|
|
notify:
|
|
- Reload nginx
|