[go: up one dir, main page]

Skip to content

Commit

Permalink
Update playbook for RabbitMQ
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdavejohnson committed Nov 1, 2016
2 parents dff8123 + a832f78 commit 4c828c0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions language_features/rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
- name: add rabbitmq official apt repository
apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' state=present

- name: install rabbitmq
apt: pkg=rabbitmq-server={{rabbitmq_version}} state=installed force=yes
- name: add trusted key
apt_key: url=https://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present

- name: install package
apt: name={{ item }} update_cache=yes state=installed
with_items:
- rabbitmq-server

- name: enable rabbitmq plugins
rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing,rabbitmq_federation state=enabled
Expand All @@ -32,9 +37,6 @@
- name: ensure vhost /test is present
rabbitmq_vhost: name=/test state=present

- name: set federation local-username
rabbitmq_parameter: component=federation name=local-username value='"user1"' state=present

handlers:
- name: restart rabbitmq
service: name=rabbitmq-server state=restarted

0 comments on commit 4c828c0

Please sign in to comment.