redis.yml 424 B

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