redis.yml 522 B

123456789101112131415161718192021222324
  1. ---
  2. # tasks/FreeBSD/redis.yml: Deploy redis
  3. # Specific to FreeBSD
  4. - name: Include ansible_distribution vars
  5. include_vars: "{{ ansible_distribution }}.yml"
  6. tags: redis
  7. - name: Ensure redis is installed
  8. tags: redis
  9. pkgng:
  10. name: "{{ redis_pkg_name }}"
  11. state: "{{ redis_pkg_state }}"
  12. - name: Ensure redis binds to accessible IP
  13. tags: redis
  14. lineinfile:
  15. dest: /usr/local/etc/redis.conf
  16. regexp: '^bind'
  17. line: 'bind 0.0.0.0'
  18. notify: restart redis service
  19. - meta: flush_handlers
  20. tags: redis