RabbitMQ: create admin user

This commit is contained in:
Aurélien Bompard 2018-10-05 08:30:25 +00:00
parent b1ead55e6f
commit a3cac4de5b
2 changed files with 21 additions and 0 deletions

View file

@ -126,3 +126,16 @@
tags:
- rabbitmq_cluster
- config
- name: Create the admin user for the pubsub vhost
rabbitmq_user:
user: admin
password: "{{ rabbitmq_admin_password_staging }}"
vhost: /pubsub
configure_priv: .*
read_priv: .*
write_priv: .*
when: env == "staging"
tags:
- rabbitmq_cluster
- config