Commit c7605b22 by Feanil Patel

Update the rabbit user creation to give users the correct privileges.

parent ca19a8fa
...@@ -52,6 +52,13 @@ ...@@ -52,6 +52,13 @@
rabbitmq_user: user="guest" state=absent rabbitmq_user: user="guest" state=absent
- name: add admin users - name: add admin users
rabbitmq_user: user='{{item.name}}' password='{{item.password}}' tags="administrator" state=present rabbitmq_user: >
user='{{item.name}}'
password='{{item.password}}'
read_priv='.*'
write_priv='.*'
configure_priv='.*'
tags="administrator"
state=present
with_items: rabbitmq_auth_config.admins with_items: rabbitmq_auth_config.admins
when: "'admins' in rabbitmq_auth_config" when: "'admins' in rabbitmq_auth_config"
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