better debug
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
1163aa8e47
commit
00478a4f76
2 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@
|
|||
# The values are numbers. Generate an alert in Nagios if
|
||||
# the number of messages go above these values.
|
||||
|
||||
- name: Validate parameters
|
||||
- name: Validate queue name {{ queue_name }}
|
||||
assert:
|
||||
that:
|
||||
- "queue_name.startswith(username)"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See https://www.rabbitmq.com/access-control.html#permissions for details on
|
||||
# the RabbitMQ permissions configuration.
|
||||
|
||||
- name: Validate parameters
|
||||
- name: Validate username {{ username }}
|
||||
assert:
|
||||
that:
|
||||
- username != "admin"
|
||||
|
@ -25,7 +25,7 @@
|
|||
- rabbitmq_cluster
|
||||
|
||||
- debug:
|
||||
msg: "Topic permissions: {{ topic_permissions|default([]) }}"
|
||||
msg: "Topic permissions: {{ topic_permissions }}"
|
||||
tags:
|
||||
- config
|
||||
- fedora-messaging
|
||||
|
@ -33,7 +33,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 }}"
|
||||
community.rabbitmq.rabbitmq_user:
|
||||
user: "{{ username }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue