ansible.arpwatch/handlers/main.yml

11 lines
354 B
YAML
Raw Permalink 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 }}'