Files
tildes/ansible/roles/redis_module_cell/tasks/main.yml
T
Deimos 4cc100ab02 Switch to Debian 10 and Ansible
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.
2021-06-25 00:08:58 -06:00

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