From 4c892b119d515e6a3f2f189596e74e0026b4d5e9 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Wed, 27 Jan 2021 11:59:29 -0700 Subject: [PATCH] fixing rabbitmq queues --- ansible/playbooks/adhoc-rabbitmqqueue.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/playbooks/adhoc-rabbitmqqueue.yml b/ansible/playbooks/adhoc-rabbitmqqueue.yml index edd207a..5be4723 100644 --- a/ansible/playbooks/adhoc-rabbitmqqueue.yml +++ b/ansible/playbooks/adhoc-rabbitmqqueue.yml @@ -75,10 +75,13 @@ name: "amq.topic" destination: "{{ queue_name }}" destination_type: queue - routing_key: "{{ item }}" + routing_key: "{{ routing_item }}" vhost: "{{ vhost|default('/pubsub') }}" state: present login_user: admin login_password: "{{ rabbitmq_admin_password }}" + loop: "{{ routing_keys }}" + loop_control: + loop_var: routing_item tags: - rabbitmq