Commit b14f5576 by John Jarvis

Merge pull request #990 from edx/jarv/do-not-reinstall-rabbitmq

check before installing rabbit
parents ce17205a b3341580
......@@ -17,10 +17,16 @@
url={{ rabbitmq_pkg_url }}
dest=/var/tmp/{{ rabbitmq_pkg_url|basename }}
- name: check if rabbit is installed
shell: >
dpkg -s rabbitmq-server >/dev/null 2>&1 || echo "not installed"
register: is_installed
- name: install rabbit package using gdebi
shell: >
gdebi --n {{ rabbitmq_pkg_url|basename }}
chdir=/var/tmp
when: is_installed == "not installed"
- name: stop rabbit cluster
service: name=rabbitmq-server state=stopped
......
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