2022-01-12 20:17:11 +00:00
|
|
|
---
|
|
|
|
- name: Create traefik.service
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: traefik.service.j2
|
|
|
|
dest: /etc/systemd/system/traefik.service
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- restart traefik
|
|
|
|
|
2022-01-12 20:22:44 +00:00
|
|
|
- name: Flush handlers
|
|
|
|
meta: flush_handlers
|
2022-01-12 20:17:11 +00:00
|
|
|
|
|
|
|
- name: Ensure service is started
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
state: started
|
|
|
|
name: traefik
|
|
|
|
|
|
|
|
- name: Ensure service is enabled
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
enabled: yes
|
|
|
|
name: traefik
|