---
- name: Install fail2ban on ubuntu >= 14.04 and debian >= 8
  apt: pkg={{ f2b_packages }} state=present
  tags: fail2ban

- name: Ensure that fail2ban is enabled and running
  service: name=fail2ban state=started enabled=yes