redis.yml 560 B

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