This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/traefik/tasks/main.yml

27 lines
680 B
YAML
Raw Normal View History

2023-01-02 16:39:17 +00:00
- name: Create traefik app directory
file:
path: /apps/traefik
state: directory
- name: Create acme file
copy:
content: ""
dest: /apps/traefik/acme.json
force: no
- name: Copy Docker Compose script
copy:
src: "{{ role_path }}/files/docker-compose.yml"
dest: /apps/traefik/docker-compose.yml
- name: Copy traefik.toml
copy:
src: "{{ role_path }}/files/traefik.toml"
dest: /apps/traefik/traefik.toml
- name: Copy services.toml
copy:
src: "{{ role_path }}/files/services.toml"
dest: /apps/traefik/services.toml
- name: Start Docker Compose
docker_compose:
project_src: /apps/traefik
pull: true
remove_orphans: true