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 @@ ...@@ -15,4 +15,6 @@
# #
# #
- name: reload redis - name: reload redis
service: name=redis-server state=restarted service:
name: redis-server
state: restarted
...@@ -21,20 +21,27 @@ ...@@ -21,20 +21,27 @@
# #
# #
- name: add the redis ppa - name: Add the redis ppa
apt_repository: repo="{{ redis_ppa }}" apt_repository:
repo: "{{ redis_ppa }}"
state: present
- name: install redis system packages - name: Install redis system packages
apt: pkg={{ item }} install_recommends=yes state=present apt:
with_items: redis_debian_pkgs name: "{{ item }}"
notify: reload redis install_recommends: yes
state: present
with_items: "{{ redis_debian_pkgs }}"
notify:
- reload redis
- name: update redis configuration - name: Update redis configuration
template: > template:
src=etc/redis/redis.conf.j2 src: "etc/redis/redis.conf.j2"
dest=/etc/redis/redis.conf dest: "/etc/redis/redis.conf"
owner=root owner: root
group={{ redis_group }} group: "{{ redis_group }}"
mode=640 mode: "0640"
notify: reload redis 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