]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blobdiff - tasks/main.yml
updated tasks based on Debian
[github/fretlink/ansible-rabbitmq.git] / tasks / main.yml
index e74c1e516b71cd499500e94d5e692f18d675a217..3752d78fc5cbb48a3f18a3b504df7f058fc6cdfd 100644 (file)
@@ -1,26 +1,6 @@
----
 # tasks file for ansible-rabbitmq
-- name: Add the RabbitMQ public GPG key to the apt repo
-  apt_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present
-
-- name: Add RabbitMQ to the sources list
-  apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' update_cache=no state=present
-
-- name: Install RabbitMQ server
-  apt: name={{ item }} update_cache=no force=yes state=installed
-  with_items:
-    - rabbitmq-server
-
-- name: Enable the RabbitMQ Management Console
-  rabbitmq_plugin: names=rabbitmq_management state=enabled
-  notify: restart rabbitmq-server
-
-- name: Ensure that the RabbitMQ service is running
-  service: name=rabbitmq-server state=started enabled=yes
-
-- name: check | checking to see if already clustered
-  stat: path=/etc/rabbitmq/clustered
-  register: clustered
+- include: debian.yml
+  when: ansible_os_family == "Debian"
 
 - include: rabbitmq_clustering.yml
   when: enable_rabbitmq_clustering and (clustered.stat.exists != True)