ansible.arpwatch/handlers/main.yml

12 lines
418 B
YAML

---
# handlers file for arpwatch
- name: restart arpwatch service
service:
name: '{{ arpwatch__service_name }}@{{ item }}'
state: '{{ "restarted" if (arpwatch__enabled | d(True) | bool and
(arpwatch__service_manage | d(True) | bool))
else "stopped" }}'
enabled: '{{ arpwatch__service_manage | d(True) | bool }}'
with_items:
- '{{ arpwatch__conf_interfaces }}'