nrec-ansible/project/roles/traefik/tasks/main.yml
Torjus Håkestad 9f4581e4b0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Name flush handler step
2022-01-12 21:22:44 +01:00

22 lines
433 B
YAML

---
- name: Create traefik.service
ansible.builtin.template:
src: traefik.service.j2
dest: /etc/systemd/system/traefik.service
notify:
- reload systemd
- restart traefik
- name: Flush handlers
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