Skip to content

Commit

Permalink
fix(core): fix redis setup
Browse files Browse the repository at this point in the history
Signed-off-by: Johny Jose <johny@playlyfe.com>
  • Loading branch information
Johny Jose committed Jan 17, 2015
1 parent 3c36901 commit 8233704
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ansible/playbooks/canvas/roles/redis/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
---
- name: Ensure redis data container is present
docker:
image: busybox
name: canvas_redis_data
volumes:
- /data
detach: true
state: present
- name: Ensure redis is running
shell: (docker inspect canvas_redis &> /dev/null && docker start canvas_redis) || docker run --name canvas_redis --net host --volumes-from canvas_redis_data -d {{ redis_docker_image }} redis-server --appendonly yes
shell: (docker inspect canvas_redis &> /dev/null && docker start canvas_redis) || docker run --name canvas_redis --net host -d {{ redis_docker_image }} redis-server

0 comments on commit 8233704

Please sign in to comment.