DCD-352: Explicitly start/enable service rather than relying on handlers.

This commit is contained in:
Steve Smith
2019-06-03 12:26:09 +10:00
parent ecfd5309fc
commit bf50f2beb2
6 changed files with 8 additions and 22 deletions

View File

@@ -4,6 +4,10 @@
template:
src: "product.service.j2"
dest: "/etc/systemd/system/{{ atl_systemd_service_name }}"
notify:
- Enable Product
- Restart Product
- name: Enable and start Product
service:
name: "{{ atl_systemd_service_name }}"
state: started
enabled: true
when: atl_startup_enable