2019-03-28 16:32:58 +01:00
|
|
|
---
|
|
|
|
# handlers file for openmanage
|
2019-04-01 16:53:32 +02:00
|
|
|
|
|
|
|
- name: restart dataeng service
|
|
|
|
service:
|
|
|
|
name: 'dataeng'
|
|
|
|
state: '{{ "restarted" if (openmanage__deploy_state == "present")
|
|
|
|
else "stopped" }}'
|
|
|
|
enabled: '{{ "yes" if (openmanage__deploy_state == "present")
|
|
|
|
else "no" }}'
|
|
|
|
|
2019-03-28 16:32:58 +01:00
|
|
|
- name: restart webgui service
|
|
|
|
service:
|
|
|
|
name: '{{ openmanage__webgui_service_name }}'
|
|
|
|
state: '{{ "restarted" if (openmanage__deploy_state == "present") and
|
|
|
|
(openmanage__webgui_state == "present")
|
|
|
|
else "stopped" }}'
|
|
|
|
enabled: '{{ "yes" if (openmanage__deploy_state == "present") and
|
|
|
|
(openmanage__webgui_state == "present")
|
|
|
|
else "no" }}'
|