24 lines
496 B
YAML
24 lines
496 B
YAML
|
---
|
||
|
|
||
|
- name: Create traefik-config directory
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
owner: 1000
|
||
|
mode: '700'
|
||
|
state: directory
|
||
|
loop:
|
||
|
- "{{ docker_dir }}/traefik/etc-traefik/"
|
||
|
- "{{ docker_dir }}/traefik/var-log/"
|
||
|
|
||
|
- name: Copy traefik-config
|
||
|
template:
|
||
|
owner: 1000
|
||
|
src: "templates/pi/{{ item }}"
|
||
|
dest: "{{ docker_dir }}/{{ item }}"
|
||
|
mode: '400'
|
||
|
loop:
|
||
|
- "traefik/etc-traefik/traefik.yml"
|
||
|
- "traefik/var-log/access.log"
|
||
|
- "traefik/var-log/traefik.log"
|
||
|
|