ansible.arpwatch/handlers/main.yml

10 lines
353 B
YAML
Raw Normal View History

2018-04-23 09:21:32 +02:00
---
# handlers file for arpwatch
- name: restart arpwatch service
service:
name: '{{ arpwatch__service_name }}'
state: '{{ "restarted" if (arpwatch__enabled | d(True) | bool and
(arpwatch__service_manage | d(True) | bool))
else "stopped" }}'
enabled: '{{ arpwatch__service_manage | d(True) | bool }}'