From 58d70020000cd6e304e911cbfe54925236da82c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 1 Mar 2019 14:19:57 +0000 Subject: [PATCH] Rabbit: add perm to write in a user's queue --- roles/rabbit/queue/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/rabbit/queue/tasks/main.yml b/roles/rabbit/queue/tasks/main.yml index 6c567cb813..414729f8b9 100644 --- a/roles/rabbit/queue/tasks/main.yml +++ b/roles/rabbit/queue/tasks/main.yml @@ -25,8 +25,8 @@ rabbitmq_user: user: "{{ username }}" vhost: "{{ vhost }}" - read_priv: "^(amq\\.topic)|({{ username }}.*)$" # Read from queues prefixed with their name and from the exchange - write_priv: "amq\\.topic" # Publish to the topic exchange + read_priv: "^(amq\\.topic)|({{ username }}.*)$" # Read from queues prefixed with their name and bind to the topic exchange + write_priv: "^(amq\\.topic)|({{ username }}.*)$" # Write to queues prefixed with their name and publish to the topic exchange configure_priv: "^$" # No configuration permissions state: present