Add prod rabbitmq admin
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
e293bc91d4
commit
a7b56e6b08
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue