From 58bd7697de7d1bb5c4064c2a7c78f37a702b504f Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 22 Dec 2017 14:25:37 +0100
Subject: [PATCH] Define a default, just in case

---
 tasks/main.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index c4458a0..e186f3a 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -9,7 +9,7 @@
   - name: "Install Certs"
     include: '../../letsencrypt/tasks/cert.yml'
     with_subelements:
-      - '{{ drupal_settings }}'
+      - '{{ drupal_settings|default([]) }}'
       - domains
     loop_control:
       loop_var: domain
@@ -21,7 +21,7 @@
 - block:
   - name: "Install Drupal"
     include: install.yml
-    with_items: '{{ drupal_settings }}'
+    with_items: '{{ drupal_settings|default([]) }}'
     loop_control:
       loop_var: drupal
     when: limit_site is not defined or drupal.id is not defined or limit_site == drupal.id
@@ -31,7 +31,7 @@
 - block:
   - name: "Collect Drupal Configuration"
     include: collect_config/main.yml
-    with_items: '{{ drupal_settings }}'
+    with_items: '{{ drupal_settings|default([]) }}'
     loop_control:
       loop_var: drupal
     when: limit_site is not defined or drupal.id is not defined or limit_site == drupal.id
-- 
GitLab