add dependencies of traefik

This commit is contained in:
Pim Kunis 2023-01-02 23:16:29 +01:00
parent ad607bcc1a
commit c6e9bd2ac6
6 changed files with 8 additions and 5 deletions

View file

@ -9,11 +9,6 @@
- I always resign the zone, even if nothing has changed. - I always resign the zone, even if nothing has changed.
I could check whether the zone has changed or new keys were generated but that is kind of difficult. I could check whether the zone has changed or new keys were generated but that is kind of difficult.
### Traefik
- create network
- make docker compose depend on traefik
### Firewall ### Firewall
Seems to be a little annoying with all the docker stuff Seems to be a little annoying with all the docker stuff

View file

@ -1,3 +1,4 @@
dependencies: dependencies:
- role: common - role: common
- role: docker - role: docker
- role: traefik

View file

@ -1,3 +1,4 @@
dependencies: dependencies:
- role: common - role: common
- role: docker - role: docker
- role: traefik

View file

@ -1,3 +1,4 @@
dependencies: dependencies:
- role: common - role: common
- role: docker - role: docker
- role: traefik

View file

@ -1,3 +1,4 @@
dependencies: dependencies:
- role: common - role: common
- role: docker - role: docker
- role: traefik

View file

@ -7,6 +7,7 @@
content: "" content: ""
dest: /apps/traefik/acme.json dest: /apps/traefik/acme.json
force: no force: no
mode: 0600
- name: Copy Docker Compose script - name: Copy Docker Compose script
copy: copy:
src: "{{ role_path }}/files/docker-compose.yml" src: "{{ role_path }}/files/docker-compose.yml"
@ -19,6 +20,9 @@
copy: copy:
src: "{{ role_path }}/files/services.toml" src: "{{ role_path }}/files/services.toml"
dest: /apps/traefik/services.toml dest: /apps/traefik/services.toml
- name: Create traefik network
docker_network:
name: "traefik"
- name: Start Docker Compose - name: Start Docker Compose
docker_compose: docker_compose:
project_src: /apps/traefik project_src: /apps/traefik