mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-05-02 22:07:01 +02:00
49886af37e
See merge request tildes-community/tildes-cf!1
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
- name: Download redis-cell Redis module (x86_64) from GitHub
|
|
when: ansible_facts['architecture'] == 'x86_64'
|
|
get_url:
|
|
dest: /tmp/redis-cell.tar.gz
|
|
url: https://github.com/brandur/redis-cell/releases/download/v0.4.0/redis-cell-v0.4.0-x86_64-unknown-linux-gnu.tar.gz
|
|
checksum: sha256:f86380f692c3852502e7c8924915a3424a4614ba01d7feec4cbc3c1faf22fb28
|
|
|
|
- name: Download redis-cell Redis module (aarch64) from GitHub
|
|
when: ansible_facts['architecture'] == 'aarch64'
|
|
get_url:
|
|
dest: /tmp/redis-cell.tar.gz
|
|
url: https://github.com/brandur/redis-cell/releases/download/v0.4.0/redis-cell-v0.4.0-aarch64-unknown-linux-gnu.tar.gz
|
|
checksum: sha256:bff45476b45c5e7da7e840076f35e91f83641960e5860620063da7b070f154bc
|
|
|
|
- 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
|