redis.yml 544 B

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