redis.yml 518 B

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