From a7b06f8a2706f1a2018a18343c7ae58889093012 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 25 Mar 2020 16:06:21 +0100
Subject: [PATCH] Implement NewGen version to collect config

---
 tasks/main.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 4dafbdf..1592e37 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -51,7 +51,16 @@
       with_items: '{{ drupal_settings|default([]) }}'
       loop_control:
         loop_var: drupal
-      when: limit_site is not defined or limit_site == 'no' or drupal.id is not defined or limit_site == drupal.id
+      when: siteproject is not defined and (limit_site is not defined or limit_site == 'no' or drupal.id is not defined or limit_site == drupal.id)
+      tags:
+        - deploy
+
+    - name: Collect Drupal Configuration NG
+      include_tasks: collect_config/main.yml
+      with_items: '{{ drupal_settings|default([]) }}'
+      loop_control:
+        loop_var: drupal
+      when: limit_site is not defined and (siteproject is not defined or siteproject == 'no' or drupal.siteproject is not defined or (siteproject == drupal.siteproject and drupal.src.git.branch == 'master'))
       tags:
         - deploy
 
-- 
GitLab