16 lines
419 B
YAML
16 lines
419 B
YAML
- name: Traefik network
|
|
community.docker.docker_network:
|
|
name: traefik
|
|
|
|
- name: Traefik dir
|
|
ansible.builtin.file:
|
|
path: "{{ docker_traefik_install_dir }}"
|
|
state: directory
|
|
mode: u=rwx,g=rx,o=
|
|
|
|
- name: Traefik compose
|
|
ansible.builtin.template:
|
|
src: traefik-docker-compose.yml.j2
|
|
dest: "{{ docker_traefik_install_dir }}/docker-compose.yml"
|
|
mode: u=rw,g=r,o=r
|
|
notify: Docker-compose-up
|