ansible.arpwatch/handlers/main.yml

12 lines
418 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 }}@{{ item }}'
2018-04-23 09:21:32 +02:00
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 }}'