Ansible role for installing and enabling (service) fail2ban role has ability to create and manage config.
None
Including an example of how to use your role (for instance, with variables passed in as parameters):
- hosts:
- web
- roles:
- fail2ban