This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/traefik/tasks/main.yml

19 lines
461 B
YAML
Raw Normal View History

2023-05-02 10:22:16 +00:00
- name: Create Traefik network
docker_network:
name: traefik
driver: overlay
2023-05-20 11:45:25 +00:00
- name: Create Docker config
docker_config:
name: traefik_services
2023-05-20 12:01:36 +00:00
data: "{{ lookup('file', '{{ role_path }}/services.yml') }}"
2023-05-20 11:45:25 +00:00
use_ssh_client: true
rolling_versions: true
register: services
2023-05-02 10:22:16 +00:00
- name: Deploy Docker stack
docker_stack:
2023-05-20 11:45:25 +00:00
name: forgejo
2023-05-02 10:22:16 +00:00
compose:
2023-05-20 11:45:25 +00:00
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"