Add prod rabbitmq admin

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2018-11-28 10:08:37 +01:00
parent e293bc91d4
commit a7b56e6b08

View file

@ -140,3 +140,17 @@
tags:
- rabbitmq_cluster
- config
- name: Create the admin user for the pubsub vhost
rabbitmq_user:
user: admin
password: "{{ rabbitmq_admin_password_production }}"
vhost: /pubsub
configure_priv: .*
read_priv: .*
write_priv: .*
tags: management
when: env == "production" and inventory_hostname.startswith('rabbitmq01')
tags:
- rabbitmq_cluster
- config