---
# Install Redis
- name: Chris Lea PPA for Redis
  apt_repository: repo='ppa:chris-lea/redis-server'

- name: Redis
  apt: pkg=redis-server=2:2.6.16-1chl1~precise1 update_cache=yes state=present

- name: Redis configuration
  template: src=redis.conf.j2 dest=/etc/redis/redis.conf

- name: Redis upstart configuration
  template: src=upstart.conf.j2 dest=/etc/init/redis-server.conf

- name: remove legacy init.d script
  file: path=/etc/init.d/redis-server state=absent

---
# Install Redis
- name: Chris Lea PPA for Redis
  apt_repository: repo='ppa:chris-lea/redis-server'

- name: Redis Tools
  apt: pkg=redis-tools=2:2.8.17-1chl1~precise1 update_cache=yes state=present

- name: Redis
  apt: pkg=redis-server=2:2.6.16-1chl1~precise1 update_cache=yes state=present

- name: Redis configuration
  template: src=redis.conf.j2 dest=/etc/redis/redis.conf

- name: Redis upstart configuration
  template: src=upstart.conf.j2 dest=/etc/init/redis-server.conf

- name: remove legacy init.d script
  file: path=/etc/init.d/redis-server state=absent

Add `redis-tools` dependency for `redis-server`
Add `redis-tools` dependency for `redis-server`
