Fix service configs task
"Create haproxy service config files" fails due to the variable haproxy_service_configs being undefined. Change-Id: I50482d9717b897e36e6fac4d7e7a5786567aa18e
This commit is contained in:
parent
b49c2bf245
commit
b1fc228176
@ -17,7 +17,7 @@
|
||||
template:
|
||||
src: service.j2
|
||||
dest: "/etc/haproxy/conf.d/{{ item.service.haproxy_service_name }}"
|
||||
with_items: "{{ haproxy_service_configs }}"
|
||||
with_items: "{{ haproxy_service_configs | default([]) }}"
|
||||
when:
|
||||
- (item.service.haproxy_backend_nodes is defined and
|
||||
item.service.haproxy_backend_nodes | length > 0) or
|
||||
|
Loading…
x
Reference in New Issue
Block a user