redis.yml 465 B

1234567891011121314151617181920
  1. ---
  2. # tasks/Debian/redis.yml: Deploy redis
  3. # Specific to Debian
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. - name: Ensure redis is installed
  6. apt:
  7. name: "{{ redis_pkg_name }}"
  8. state: "{{ redis_pkg_state }}"
  9. update_cache: true
  10. - name: Ensure redis binds to accessible IP
  11. lineinfile:
  12. dest: /etc/redis/redis.conf
  13. regexp: '^bind'
  14. line: 'bind 0.0.0.0'
  15. notify: restart redis service
  16. - meta: flush_handlers