generated from ansible/ansible_template
add an option to skip the docker project setup
This commit is contained in:
parent
cc226beef5
commit
2cea7f21ca
|
@ -0,0 +1 @@
|
|||
docker_skip_project: false
|
|
@ -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
|
||||
|
|
Reference in New Issue