Ansible role to install and configure fail2ban.
see defaults/main.yml
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: c1.fail2ban, fail2ban_enabled: yes }
BSD