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:
Logan V 2016-11-07 17:25:48 -06:00
parent b49c2bf245
commit b1fc228176

View File

@ -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