nrec-ansible/project/roles/traefik/tasks/main.yml

21 lines
410 B
YAML
Raw Normal View History

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