redis.yml 480 B

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