| 1234567891011121314151617181920212223 |
- ---
- # tasks/CentOS/redis.yml: Deploy redis
- # Specific to CentOS
- - include_vars: "{{ ansible_distribution }}.yml"
- - name: Install EPEL repo
- yum:
- name: epel-release
- state: present
- when: enable_epel_repo
- - name: Ensure redis is installed
- yum:
- name: "{{ redis_pkg_name }}"
- state: "{{ redis_pkg_state }}"
- enablerepo: "{{ centos_repository }}"
- - name: Ensure redis binds to accessible IP
- lineinfile:
- dest: /etc/redis.conf
- regexp: '^bind'
- line: 'bind 0.0.0.0'
|