28 lines
582 B
YAML
28 lines
582 B
YAML
|
---
|
||
|
# tasks/Fedora/redis.yml: Deploy redis
|
||
|
# Specific to Fedora
|
||
|
|
||
|
- name: Include ansible_distribution vars
|
||
|
include_vars:
|
||
|
file: "{{ ansible_distribution }}.yml"
|
||
|
tags: redis
|
||
|
|
||
|
- name: Ensure jemalloc is installed as a dependency of Redis
|
||
|
tags: redis
|
||
|
dnf:
|
||
|
name: jemalloc
|
||
|
state: present
|
||
|
|
||
|
- name: Ensure redis is installed
|
||
|
tags: redis
|
||
|
dnf:
|
||
|
name: "{{ sensu_redis_pkg_name }}"
|
||
|
state: "{{ sensu_redis_pkg_state }}"
|
||
|
|
||
|
- name: Ensure redis binds to accessible IP
|
||
|
tags: redis
|
||
|
lineinfile:
|
||
|
dest: /etc/redis.conf
|
||
|
regexp: '^bind'
|
||
|
line: 'bind 0.0.0.0'
|