Add traefik role
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-01-12 21:17:11 +01:00
parent fec3bcd01c
commit 07d6786167
4 changed files with 68 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
---
- name: Create traefik.service
ansible.builtin.template:
src: traefik.service.j2
dest: /etc/systemd/system/traefik.service
notify:
- reload systemd
- restart traefik
- meta: flush_handlers
- name: Ensure service is started
ansible.builtin.systemd:
state: started
name: traefik
- name: Ensure service is enabled
ansible.builtin.systemd:
enabled: yes
name: traefik