This is an ansible role for installing fail2ban on a drachtio server. It installs and configures fail2ban, and adds the configuration to monitor the drachtio log file for spammers.
The sip port(s) that drachtio is listening on
drachtio_ports: "5060" # use comma-separated if multiple ports
---
- hosts: all
roles:
- ansible-role-fail2ban-drachtio
become: yes