feat: Let's encrypt, pocketid

This commit is contained in:
Lino Silva
2026-03-31 10:31:31 +01:00
parent 82a433fc26
commit d71caea7d0
11 changed files with 190 additions and 25 deletions
+15 -3
View File
@@ -11,6 +11,12 @@
state: directory
mode: '0755'
- name: Create traefik dynamic config directory
file:
path: /opt/traefik/data/dynamic
state: directory
mode: '0755'
- name: Create proxy network
docker_network:
name: proxy
@@ -27,6 +33,12 @@
dest: /opt/traefik/data/traefik.yml
mode: '0644'
- name: Create remote services configuration
template:
src: remote-services.yml.j2
dest: /opt/traefik/data/dynamic/remote-services.yml
mode: '0644'
- name: Create docker-compose file
template:
src: docker-compose.yml.j2
@@ -34,6 +46,6 @@
mode: '0644'
- name: Start Traefik
community.docker.docker_compose_v2:
project_src: /opt/traefik
state: present
shell: cd /opt/traefik && docker compose up -d
args:
chdir: /opt/traefik