nrec-ansible/project/roles/traefik/tasks/main.yml
Torjus Håkestad 07d6786167
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add traefik role
2022-01-12 21:17:11 +01:00

21 lines
410 B
YAML

---
- 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