From 8b0df497f4e8444691adb850b5d2f84c02e7f912 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 19 Sep 2019 11:36:25 +0200 Subject: [PATCH] rabbit/queue: Tag all tasks with fedora-messaging tag --- roles/rabbit/queue/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/rabbit/queue/tasks/main.yml b/roles/rabbit/queue/tasks/main.yml index d2760c7e37..f616dd049c 100644 --- a/roles/rabbit/queue/tasks/main.yml +++ b/roles/rabbit/queue/tasks/main.yml @@ -26,6 +26,7 @@ that: - "queue_name.startswith(username)" fail_msg: "Your queue name must be prefixed with your username" + tags: fedora-messaging # See https://www.rabbitmq.com/access-control.html#permissions for details on # the RabbitMQ permissions configuration. @@ -41,6 +42,7 @@ write_priv: "^(amq\\.topic)|({{ username }}.*){% for queue in write_queues|default([]) %}|({{ queue }}.*){% endfor %}$" configure_priv: "^$" # No configuration permissions state: present + tags: fedora-messaging - name: Create the {{ queue_name }} queue in RabbitMQ delegate_to: "{{ rabbitmq_server }}" @@ -53,6 +55,7 @@ state: present login_user: admin login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}" + tags: fedora-messaging - name: Bind the {{ queue_name }} queue to the topic exchange delegate_to: "{{ rabbitmq_server }}" @@ -66,6 +69,7 @@ login_user: admin login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}" loop: "{{ routing_keys }}" + tags: fedora-messaging - name: Monitor the {{ queue_name }} queue in Nagios (NRPE) when: thresholds and env == "production" @@ -77,6 +81,7 @@ group: root mode: 0644 notify: restart nrpe on rabbitmq + tags: fedora-messaging - name: Monitor the {{ queue_name }} queue in Nagios when: thresholds and env == "production" @@ -85,3 +90,4 @@ src: nagios.cfg.j2 dest: /etc/nagios/services/rabbitmq-queue-{{ queue_name }}.cfg notify: restart nagios on noc + tags: fedora-messaging