better debug

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-05-09 11:42:31 +02:00
parent 1163aa8e47
commit 00478a4f76
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 4 additions and 4 deletions

View file

@ -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)"

View file

@ -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 }}"