From a0be8f98503ffd3a8be12d62a71b3999f45d28a2 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 14 Jun 2019 08:42:31 -0700 Subject: [PATCH] rabbit: show user and queue names when creating queues It makes it a lot easier to know which queue is which when a playbook creates more than one... Signed-off-by: Adam Williamson --- roles/rabbit/queue/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/rabbit/queue/tasks/main.yml b/roles/rabbit/queue/tasks/main.yml index 414729f8b9..ba9ca81b31 100644 --- a/roles/rabbit/queue/tasks/main.yml +++ b/roles/rabbit/queue/tasks/main.yml @@ -20,7 +20,7 @@ # See https://www.rabbitmq.com/access-control.html#permissions for details on # the RabbitMQ permissions configuration. -- name: Create the user in RabbitMQ +- name: Create the {{ username }} user in RabbitMQ delegate_to: "{{ rabbitmq_server }}" rabbitmq_user: user: "{{ username }}" @@ -30,7 +30,7 @@ configure_priv: "^$" # No configuration permissions state: present -- name: Create the queue in RabbitMQ +- name: Create the {{ queue_name }} queue in RabbitMQ delegate_to: "{{ rabbitmq_server }}" rabbitmq_queue: name: "{{ queue_name }}" @@ -41,7 +41,7 @@ login_user: admin login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}" -- name: Bind the queue to the topic exchange +- name: Bind the {{ queue_name }} queue to the topic exchange delegate_to: "{{ rabbitmq_server }}" rabbitmq_binding: name: "amq.topic"