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 }}"
|
src: "{{ docker_project_name }}"
|
||||||
dest: "{{ lookup('env', 'HOME') }}/"
|
dest: "{{ lookup('env', 'HOME') }}/"
|
||||||
become: false
|
become: false
|
||||||
|
when: not docker_skip_project
|
||||||
|
|
||||||
- name: "Copy the traefik config"
|
- name: "Copy the traefik config"
|
||||||
copy:
|
copy:
|
||||||
src: "traefik.yaml"
|
src: "traefik.yaml"
|
||||||
dest: "{{ docker_project_path }}/traefik.yaml"
|
dest: "{{ docker_project_path }}/traefik.yaml"
|
||||||
become: false
|
become: false
|
||||||
|
when: not docker_skip_project
|
||||||
|
|
||||||
- name: "Start the Docker containers"
|
- name: "Start the Docker containers"
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
|
@ -50,3 +52,4 @@
|
||||||
state: "present"
|
state: "present"
|
||||||
pull: "yes"
|
pull: "yes"
|
||||||
remove_orphans: "yes"
|
remove_orphans: "yes"
|
||||||
|
when: not docker_skip_project
|
||||||
|
|
Reference in New Issue