From b1fc2281761b14a38df748b62a9b048614eccaa6 Mon Sep 17 00:00:00 2001 From: Logan V Date: Mon, 7 Nov 2016 17:25:48 -0600 Subject: [PATCH] Fix service configs task "Create haproxy service config files" fails due to the variable haproxy_service_configs being undefined. Change-Id: I50482d9717b897e36e6fac4d7e7a5786567aa18e --- tasks/haproxy_service_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/haproxy_service_config.yml b/tasks/haproxy_service_config.yml index 2b7820a..1754f64 100644 --- a/tasks/haproxy_service_config.yml +++ b/tasks/haproxy_service_config.yml @@ -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