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