redis.yml 407 B

1234567891011121314151617
  1. ---
  2. # tasks/Amazon/redis.yml: Deploy redis
  3. # Specific to Amazon Linux AMI
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. - name: Ensure redis is installed
  6. yum:
  7. name: "{{ redis_pkg_name }}"
  8. state: "{{ redis_pkg_state }}"
  9. enablerepo: epel
  10. - name: Ensure redis binds to accessible IP
  11. lineinfile:
  12. dest: /etc/redis.conf
  13. regexp: '^bind'
  14. line: 'bind 0.0.0.0'