redis.yml 582 B

123456789101112131415161718192021222324252627
  1. ---
  2. # tasks/Fedora/redis.yml: Deploy redis
  3. # Specific to Fedora
  4. - name: Include ansible_distribution vars
  5. include_vars:
  6. file: "{{ ansible_distribution }}.yml"
  7. tags: redis
  8. - name: Ensure jemalloc is installed as a dependency of Redis
  9. tags: redis
  10. dnf:
  11. name: jemalloc
  12. state: present
  13. - name: Ensure redis is installed
  14. tags: redis
  15. dnf:
  16. name: "{{ sensu_redis_pkg_name }}"
  17. state: "{{ sensu_redis_pkg_state }}"
  18. - name: Ensure redis binds to accessible IP
  19. tags: redis
  20. lineinfile:
  21. dest: /etc/redis.conf
  22. regexp: '^bind'
  23. line: 'bind 0.0.0.0'