From 2cea7f21ca0e14ac77205bbcddd25a9588e547cf Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 1 Nov 2021 16:32:07 +0100 Subject: [PATCH] add an option to skip the docker project setup --- defaults/main.yml | 1 + tasks/main.yml | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 defaults/main.yml diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..d07e7c1 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1 @@ +docker_skip_project: false diff --git a/tasks/main.yml b/tasks/main.yml index ff1c0c3..5188598 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,12 +37,14 @@ src: "{{ docker_project_name }}" dest: "{{ lookup('env', 'HOME') }}/" become: false + when: not docker_skip_project - name: "Copy the traefik config" copy: src: "traefik.yaml" dest: "{{ docker_project_path }}/traefik.yaml" become: false + when: not docker_skip_project - name: "Start the Docker containers" community.docker.docker_compose: @@ -50,3 +52,4 @@ state: "present" pull: "yes" remove_orphans: "yes" + when: not docker_skip_project