Commit a832f78d authored by Václav Makeš's avatar Václav Makeš
Browse files

Update playbook for RabbitMQ

- sudo: true is deprecated
- version is useless because official RabbitMQ repository install actual version of message broker
- is neccessary add trusted key
- set federation doesn't work for that I remove it
parent 934dd82f
---
- hosts: rabbitmq
sudo: true
vars:
rabbitmq_version: 3.0.2-1
become: true
tasks:
- name: ensure python-software-properties is installed
......@@ -11,8 +9,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
......@@ -31,9 +34,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
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