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 <awilliam@redhat.com>
This commit is contained in:
parent
513ff61eaa
commit
a0be8f9850
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
# See https://www.rabbitmq.com/access-control.html#permissions for details on
|
# See https://www.rabbitmq.com/access-control.html#permissions for details on
|
||||||
# the RabbitMQ permissions configuration.
|
# the RabbitMQ permissions configuration.
|
||||||
- name: Create the user in RabbitMQ
|
- name: Create the {{ username }} user in RabbitMQ
|
||||||
delegate_to: "{{ rabbitmq_server }}"
|
delegate_to: "{{ rabbitmq_server }}"
|
||||||
rabbitmq_user:
|
rabbitmq_user:
|
||||||
user: "{{ username }}"
|
user: "{{ username }}"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
configure_priv: "^$" # No configuration permissions
|
configure_priv: "^$" # No configuration permissions
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create the queue in RabbitMQ
|
- name: Create the {{ queue_name }} queue in RabbitMQ
|
||||||
delegate_to: "{{ rabbitmq_server }}"
|
delegate_to: "{{ rabbitmq_server }}"
|
||||||
rabbitmq_queue:
|
rabbitmq_queue:
|
||||||
name: "{{ queue_name }}"
|
name: "{{ queue_name }}"
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
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 }}"
|
delegate_to: "{{ rabbitmq_server }}"
|
||||||
rabbitmq_binding:
|
rabbitmq_binding:
|
||||||
name: "amq.topic"
|
name: "amq.topic"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue