redis.yml 546 B

12345678910111213141516171819202122
  1. ---
  2. # tasks/Ubuntu/redis.yml: Deploy redis
  3. # Specific to Ubuntu
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. - name: Ensure the redis APT repo is present
  6. apt_repository:
  7. repo: "{{ redis_pkg_repo }}"
  8. state: present
  9. update_cache: true
  10. - name: Ensure redis is installed
  11. apt:
  12. name: "{{ redis_pkg_name }}"
  13. state: "{{ redis_pkg_state }}"
  14. update_cache: true
  15. - name: Deploy redis systemd service manifest
  16. copy:
  17. src: redis_systemd.service
  18. dest: /etc/systemd/system/redis.service