From 3c8a3de9d3329578deb961cab4bfdb09fec2977c Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 25 Mar 2020 16:20:00 +0100
Subject: [PATCH] Implement NewGen version to collect db dump and assets

---
 tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 1592e37..099cbba 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -83,7 +83,7 @@
       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 or siteproject == 'no' or drupal.siteproject is not defined or (siteproject == drupal.siteproject and drupal.src.git.branch == branch)
       tags:
         - collect_db_dump
         - collect_asset_archive
-- 
GitLab