diff --git a/roles/rabbitmq/tasks/main.yml b/roles/rabbitmq/tasks/main.yml index 2d79cc79..dabb6d10 100644 --- a/roles/rabbitmq/tasks/main.yml +++ b/roles/rabbitmq/tasks/main.yml @@ -28,19 +28,16 @@ tags: - packages -- name: Enable the RabbitMQ Management Console - rabbitmq_plugin: names=rabbitmq_management state=enabled - notify: restart rabbitmq-server - - name: Make sure rabbitmq-server is enabled and running service: name: rabbitmq-server state: started enabled: true +- name: Enable the RabbitMQ Management Console + rabbitmq_plugin: names=rabbitmq_management state=enabled + notify: restart rabbitmq-server + - include: setup_vhosts.yml - include: setup_users.yml - -- name: Ensure that the RabbitMQ service is running - service: name=rabbitmq-server state=started enabled=yes