M
copy, script, template or include tasks
Size: a a a
M
copy, script, template or include tasks
AD
- name: Finer container restart/update control
community.general.docker_container:
name: test
image: ubuntu:18.04
volumes:
- "
{{ playbook_dir }}/…./config.yml:/etc/xxx/config.yml"
AD
L
PG
PG
M
- name: Finer container restart/update control
community.general.docker_container:
name: test
image: ubuntu:18.04
volumes:
- "
{{ playbook_dir }}/…./config.yml:/etc/xxx/config.yml"
AD
M
M
AD
AD
M
M
AD
AD
E
ansible-playbook -i inventory.yml configure.yml
configure.yml
один из плеев- name: install traefik
gather_facts: false
hosts: gate
become: yes
roles:
- traefik
roles/traefik/tasks/main.yml
- 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
M