From 34054fa870e23adad179e7f7827a2e9a03b144c5 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Fri, 9 Feb 2024 17:29:00 +0100
Subject: [PATCH] Ignore cache and log directories Disable apt repo

---
 tasks/install.yml                | 1 +
 templates/app.yaml               | 4 +++-
 templates/application.yaml       | 4 +++-
 templates/check_application.yaml | 4 +++-
 templates/check_config.yaml      | 4 +++-
 templates/config.yaml            | 4 +++-
 6 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/tasks/install.yml b/tasks/install.yml
index 5f0c7b3..0e115db 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -6,6 +6,7 @@
     repo: 'ppa:costamagnagianfranco/borgbackup'
     state: present
     mode: 0644
+  when: false
 
 - name: Install borgbackup
   apt:
diff --git a/templates/app.yaml b/templates/app.yaml
index e1398b3..7280667 100644
--- a/templates/app.yaml
+++ b/templates/app.yaml
@@ -13,8 +13,10 @@ exclude_patterns:
     - '*.pyc'
     - '*/.git'
     - '*/.svn'
-    - '*/vendor/*'
+    - '*/cache/*'
+    - '*/log/*'
     - '*/node_modules/*'
+    - '*/vendor/*'
 exclude_caches: true
 exclude_if_present:
     - '.nobackup'
diff --git a/templates/application.yaml b/templates/application.yaml
index fe311db..fe306b9 100644
--- a/templates/application.yaml
+++ b/templates/application.yaml
@@ -21,8 +21,10 @@ exclude_patterns:
     - '*.pyc'
     - '*/.git'
     - '*/.svn'
-    - '*/vendor/*'
+    - '*/cache/*'
+    - '*/log/*'
     - '*/node_modules/*'
+    - '*/vendor/*'
 exclude_caches: true
 exclude_if_present:
     - '.nobackup'
diff --git a/templates/check_application.yaml b/templates/check_application.yaml
index eda54c6..82381c3 100644
--- a/templates/check_application.yaml
+++ b/templates/check_application.yaml
@@ -15,8 +15,10 @@ exclude_patterns:
     - '*.pyc'
     - '*/.git'
     - '*/.svn'
-    - '*/vendor/*'
+    - '*/cache/*'
+    - '*/log/*'
     - '*/node_modules/*'
+    - '*/vendor/*'
 exclude_caches: true
 exclude_if_present:
     - '.nobackup'
diff --git a/templates/check_config.yaml b/templates/check_config.yaml
index 8efc6bb..99ed409 100644
--- a/templates/check_config.yaml
+++ b/templates/check_config.yaml
@@ -15,8 +15,10 @@ exclude_patterns:
     - '*.pyc'
     - '*/.git'
     - '*/.svn'
-    - '*/vendor/*'
+    - '*/cache/*'
+    - '*/log/*'
     - '*/node_modules/*'
+    - '*/vendor/*'
 exclude_caches: true
 exclude_if_present:
     - '.nobackup'
diff --git a/templates/config.yaml b/templates/config.yaml
index 5e9f88b..edd8886 100644
--- a/templates/config.yaml
+++ b/templates/config.yaml
@@ -21,8 +21,10 @@ exclude_patterns:
     - '*.pyc'
     - '*/.git'
     - '*/.svn'
-    - '*/vendor/*'
+    - '*/cache/*'
+    - '*/log/*'
     - '*/node_modules/*'
+    - '*/vendor/*'
 exclude_caches: true
 exclude_if_present:
     - '.nobackup'
-- 
GitLab