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 values are numbers. Generate an alert in Nagios if
|
||||||
# the number of messages go above these values.
|
# the number of messages go above these values.
|
||||||
|
|
||||||
- name: Validate parameters
|
- name: Validate queue name {{ queue_name }}
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "queue_name.startswith(username)"
|
- "queue_name.startswith(username)"
|
||||||
|
|
|
@ -12,7 +12,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: Validate parameters
|
- name: Validate username {{ username }}
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- username != "admin"
|
- username != "admin"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
- rabbitmq_cluster
|
- rabbitmq_cluster
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: "Topic permissions: {{ topic_permissions|default([]) }}"
|
msg: "Topic permissions: {{ topic_permissions }}"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- fedora-messaging
|
- fedora-messaging
|
||||||
|
@ -33,7 +33,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 }}"
|
||||||
community.rabbitmq.rabbitmq_user:
|
community.rabbitmq.rabbitmq_user:
|
||||||
user: "{{ username }}"
|
user: "{{ username }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue