redis.yml 354 B

12345678910111213141516
  1. ---
  2. # tasks/Fedora/redis.yml: Deploy redis
  3. # Specific to Fedora
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. - name: Ensure redis is installed
  6. dnf:
  7. name: "{{ redis_pkg_name }}"
  8. state: "{{ redis_pkg_state }}"
  9. - name: Ensure redis binds to accessible IP
  10. lineinfile:
  11. dest: /etc/redis.conf
  12. regexp: '^bind'
  13. line: 'bind 0.0.0.0'