redis.yml 495 B

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