- name: Create Traefik network
docker_network:
name: traefik
driver: overlay
- name: Create Docker config
docker_config:
name: traefik_services
data_src: "{{ role_path }}/services.yml"
use_ssh_client: true
rolling_versions: true
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost
register: services
- name: Deploy Docker stack
docker_stack:
name: forgejo
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"