Add support for redis
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user