From e83bb4c393215eea55f9a9a2b9d4c361e2c89c94 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 9 Jun 2022 18:06:17 +0200
Subject: [PATCH] Install dc helper script for docker compose

---
 tasks/install.yml | 12 +++++++++++-
 templates/dc      |  3 +++
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100755 templates/dc

diff --git a/tasks/install.yml b/tasks/install.yml
index 1f9c61b..aa4b745 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -87,4 +87,14 @@
   with_items:
     - DOCKER
     # - DOCKER-ISOLATION
-  when: groups.proxyserver is not defined
+  when: config_firewall and groups.proxyserver is not defined
+
+- name: Helper Scripts
+  template:
+    src: '{{ item }}'
+    dest: /usr/local/bin/{{ item }}
+    owner: root
+    group: root
+    mode: 0755
+  with_items:
+    - dc
diff --git a/templates/dc b/templates/dc
new file mode 100755
index 0000000..9efcf2e
--- /dev/null
+++ b/templates/dc
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker compose "$@"
-- 
GitLab