---
- name: Restart fail2ban
  service: name=fail2ban state=restarted enabled=yes
  when: has_fail2ban