PG
Size: a a a
PG
PG
M
PG
AD
M
M
M
- name: install traefik
docker_container:
name: traefik
image: traefik:v2.4
state: started
ports:
- "80:80"
- "8080:8080"
restart: yes
restart_policy: always
volumes:
- traefik.yml:/etc/traefik/traefik.yml
roles/traefik/files/traefik.yml
в репозиторииcommand traefik error: read /etc/traefik/traefik.yml: is a directory
вот дебажу, пытаюсь найти причину.AD
volumes:
- config.yml:/etc/xxx/config.yml
M
volumes:
- config.yml:/etc/xxx/config.yml
AD
M
АП
Any copy, script, template or include tasks (in the role) can reference files in roles/x/{files,templates,tasks}/ (dir depends on task) without having to path them relatively or absolutely.у меня есть файл
roles/xxx/files/config.yml
(называть его main.yml?)- name: Finer container restart/update controlнепонятен этот момент
community.general.docker_container:
name: test
image: ubuntu:18.04
volumes:
- config.yml:/etc/xxx/config.yml
M
volumes:
- config.yml:/etc/xxx/config.yml
M
PG
volumes:
- config.yml:/etc/xxx/config.yml
M
ansible-playbook -i inventory.yml configure.yml -vvvv
M
AD
M