redis.yml 628 B

123456789101112131415161718192021
  1. ---
  2. # tasks/Ubuntu/redis.yml: Deploy Redis
  3. # Specific to Ubuntu
  4. - include_vars: "{{ item }}"
  5. with_first_found:
  6. - "{{ ansible_distribution }}.yml"
  7. - "{{ ansible_os_family }}.yml"
  8. - default.yml
  9. - name: Ensure the Redis APT repo is present
  10. apt_repository: repo={{ redis_pkg_repo }}
  11. state=present update_cache=yes
  12. - name: Ensure Redis is installed
  13. apt: name=redis-server state={{ redis_pkg_state }}
  14. update_cache=yes
  15. - name: Deploy Redis systemd service manifest
  16. copy: src=ubuntu_redis_systemd.service
  17. dest=/etc/systemd/system/redis-server.service