ansible-role-docker_traefik/tasks/main.yml
2024-11-12 12:05:12 +01:00

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