Add support for redis

This commit is contained in:
Waffles
2023-01-07 09:10:14 -08:00
parent 7ec729d912
commit ca4cac005d
5 changed files with 2293 additions and 9 deletions
+3 -2
View File
@@ -49,8 +49,9 @@
path: /usr/local/bin/feeds-build.sh
mode: '0755'
- import_tasks: redis.yml
when: ansible_hostname == REDIS_HOST
- name: Configure redis
import_tasks: redis.yml
when: RUN_REDIS is defined and RUN_REDIS
- import_tasks: maintenance.yml
when: ansible_hostname == MAINTENANCE_HOST
+9 -5
View File
@@ -1,5 +1,9 @@
---
- name: Install redis server
package:
name: redis-server
state: present
- name: Set overcommit memory
sysctl:
name: vm.overcommit_memory
value: '1'
- name: Set redis.conf
copy:
dest: /home/mastodon/live/redis/redis.conf
src: redis.conf