Add copy treafik config
This commit is contained in:
parent
3fbdcc0a51
commit
445c50dab6
12 changed files with 13 additions and 2 deletions
|
@ -4,3 +4,4 @@
|
|||
|
||||
roles:
|
||||
- { role: docker, tags: ["docker"] }
|
||||
- { role: traefik, tags: ["traefik"] }
|
||||
|
|
|
@ -32,5 +32,4 @@
|
|||
ansible.builtin.service:
|
||||
name: "docker"
|
||||
enabled: true
|
||||
state: started
|
||||
ignore_errors: true # TODO: Remove it (Not work in docker container)
|
||||
state: started
|
7
roles/traefik/tasks/base.yml
Normal file
7
roles/traefik/tasks/base.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Copy traefik conf
|
||||
ansible.builtin.copy:
|
||||
backup: true
|
||||
src: .
|
||||
dest: traefik/
|
4
roles/traefik/tasks/main.yml
Normal file
4
roles/traefik/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
- ansible.builtin.import_tasks: base.yml
|
||||
name: base
|
Loading…
Reference in a new issue