redis.yml 462 B

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