redis.yml 541 B

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