Commit 33a8a9e4 by Arbab Nazar Committed by GitHub

Merge pull request #3211 from edx/arbab/redis-rewrite

YAML syntax for ansible tasks
parents 596aee5e 06840d28
......@@ -15,4 +15,6 @@
#
#
- name: reload redis
service: name=redis-server state=restarted
service:
name: redis-server
state: restarted
......@@ -21,20 +21,27 @@
#
#
- name: add the redis ppa
apt_repository: repo="{{ redis_ppa }}"
- name: Add the redis ppa
apt_repository:
repo: "{{ redis_ppa }}"
state: present
- name: install redis system packages
apt: pkg={{ item }} install_recommends=yes state=present
with_items: redis_debian_pkgs
notify: reload redis
- name: Install redis system packages
apt:
name: "{{ item }}"
install_recommends: yes
state: present
with_items: "{{ redis_debian_pkgs }}"
notify:
- reload redis
- name: update redis configuration
template: >
src=etc/redis/redis.conf.j2
dest=/etc/redis/redis.conf
owner=root
group={{ redis_group }}
mode=640
notify: reload redis
- name: Update redis configuration
template:
src: "etc/redis/redis.conf.j2"
dest: "/etc/redis/redis.conf"
owner: root
group: "{{ redis_group }}"
mode: "0640"
notify:
- reload redis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment