mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-26 03:00:53 +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.
28 lines
744 B
YAML
28 lines
744 B
YAML
---
|
|
- name: Download redis-cell Redis module from GitHub
|
|
get_url:
|
|
dest: /tmp/redis-cell.tar.gz
|
|
url: https://github.com/brandur/redis-cell/releases/download/v0.2.1/redis-cell-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
|
|
checksum: sha256:9427fb100f4cada817f30f854ead7f233de32948a0ec644f15988c275a2ed1cb
|
|
|
|
- name: Create /opt/redis-cell
|
|
file:
|
|
path: /opt/redis-cell
|
|
state: directory
|
|
owner: redis
|
|
group: redis
|
|
mode: 0755
|
|
|
|
- name: Extract redis-cell
|
|
unarchive:
|
|
remote_src: true
|
|
src: /tmp/redis-cell.tar.gz
|
|
dest: /opt/redis-cell
|
|
|
|
- name: Load redis-cell module in Redis configuration
|
|
lineinfile:
|
|
path: /etc/redis.conf
|
|
line: loadmodule /opt/redis-cell/libredis_cell.so
|
|
notify:
|
|
- Restart redis
|