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

22 lines
433 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
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