First implementation

This commit is contained in:
Cyrille Nofficial
2020-02-07 13:38:30 +01:00
parent 3c23a1b8b0
commit f552ec5209
30 changed files with 1656 additions and 0 deletions

View File

@ -0,0 +1,32 @@
---
- name: Install ansible dependencies
apt:
name: "python-requests"
state: present
- name: Install rabbitmq package
apt:
name: rabbitmq-server
state: present
- name: Enables rabbitmq plugins
rabbitmq_plugin:
names: rabbitmq_management,rabbitmq_mqtt
state: enabled
- name: Add rabbitmq user
rabbitmq_user:
user: "{{ rabbitmq_user }}"
password: "{{ rabbitmq_password }}"
vhost: /
configure_priv: .*
read_priv: .*
write_priv: .*
tags: administrator
state: present
- name: Create exchange
rabbitmq_exchange:
name: car
type: topic
vhost: "/"