| 123456789101112131415161718192021222324252627 |
- ---
- # 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'
|