2019-03-28 16:32:58 +01:00
|
|
|
---
|
|
|
|
# handlers file for openmanage
|
2019-04-01 16:53:32 +02:00
|
|
|
|
2021-09-02 17:38:01 +02:00
|
|
|
- name: Restart snmpd service
|
|
|
|
systemd:
|
|
|
|
daemon_reload: '{{ (openmanage__snmpd_register_systemd_custom.changed | default(False)) }}'
|
|
|
|
state: '{{ "restarted" if (openmanage__snmpd_service_enabled)
|
|
|
|
else "stopped" }}'
|
|
|
|
name: '{{ openmanage__snmpd_service_name }}'
|
|
|
|
enabled: '{{ openmanage__snmpd_service_enabled }}'
|
|
|
|
when:
|
|
|
|
- openmanage__deploy_state == "present"
|
|
|
|
- ansible_service_mgr == 'systemd'
|
|
|
|
|
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" }}'
|