21 lines
418 B
YAML
21 lines
418 B
YAML
|
- name: Create Traefik network
|
||
|
docker_network:
|
||
|
name: traefik
|
||
|
driver: overlay
|
||
|
|
||
|
- name: Create working directory
|
||
|
file:
|
||
|
path: /srv/traefik
|
||
|
state: directory
|
||
|
|
||
|
- name: Copy Docker stack file
|
||
|
template:
|
||
|
src: "{{ role_path }}/docker-stack.yml.j2"
|
||
|
dest: /srv/traefik/docker-stack.yml
|
||
|
|
||
|
- name: Deploy Docker stack
|
||
|
docker_stack:
|
||
|
name: traefik
|
||
|
compose:
|
||
|
- /srv/traefik/docker-stack.yml
|