mirror of https://github.com/ceph/ceph-ansible.git
rgwloadbalancer undefined index variable
The vrrp_instances variable is using a loop with index but the index_var wasn't defined. As a result, the fact task was failing on this undefined index variable. The task includes an option with an undefined variable. The error was: 'index' is undefined Closes: #5395 Signed-off-by: Florian Faltermeier <florian.faltermeier@uibk.ac.at>pull/5399/head
parent
44e1ebaaff
commit
3f906e0c26
|
@ -21,6 +21,8 @@
|
|||
set_fact:
|
||||
vrrp_instances: "{{ vrrp_instances | default([]) | union([{ 'name': 'VI_' + index|string , 'vip': item }]) }}"
|
||||
loop: "{{ virtual_ips | flatten(levels=1) }}"
|
||||
loop_control:
|
||||
index_var: index
|
||||
|
||||
- name: "generate keepalived: configuration file: keepalived.conf"
|
||||
template:
|
||||
|
|
Loading…
Reference in New Issue