Allow flexible tag for Rabbit monitoring user

Without this patch, the monitoring user is forced to have the
tag "monitoring".

This is a problem, because some deployers would prefer having
another tag.

This patch solves the problem by allowing the tag to be a
variable, free form, that is defaulting to "monitoring".

Change-Id: I77a70842c034fa1f7fe78ff650f37358f0890bbe
This commit is contained in:
Jean-Philippe Evrard 2018-07-02 14:31:44 +02:00
parent 3e4c9cd08b
commit 5ad3c76ee5

View File

@ -72,7 +72,7 @@
rabbitmq_user:
user: "{{ rabbitmq_monitoring_userid|default('monitoring') }}"
password: "{{ rabbitmq_monitoring_password }}"
tags: "monitoring"
tags: "{{ rabbitmq_monitoring_tag | default('monitoring') }}"
state: "present"
no_log: true
when: rabbitmq_monitoring_password is defined