Change the loop variable name to avoid conficts in nested loops

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-12-10 09:42:54 +01:00
parent 64734c21e9
commit fe1c5c0e62
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -65,12 +65,14 @@
name: "amq.topic"
destination: "{{ queue_name }}"
destination_type: queue
routing_key: "{{ item }}"
routing_key: "{{ routing_key }}"
vhost: "{{ queue_vhost }}"
state: present
login_user: admin
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
loop: "{{ queue_routing_keys }}"
loop_control:
loop_var: routing_key
when: queue_routing_keys is defined
tags:
- fedora-messaging
@ -83,12 +85,14 @@
name: "zmq.topic"
destination: "{{ queue_name }}"
destination_type: queue
routing_key: "{{ item }}"
routing_key: "{{ routing_key }}"
vhost: "{{ queue_vhost }}"
state: present
login_user: admin
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
loop: "{{ queue_routing_keys }}"
loop_control:
loop_var: routing_key
when: queue_routing_keys is defined
tags:
- fedora-messaging