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:
parent
64734c21e9
commit
fe1c5c0e62
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue