add an option to skip the docker project setup

This commit is contained in:
Andreas Zweili 2021-11-01 16:32:07 +01:00
parent cc226beef5
commit 2cea7f21ca
2 changed files with 4 additions and 0 deletions

1
defaults/main.yml Normal file
View File

@ -0,0 +1 @@
docker_skip_project: false

View File

@ -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