Copied from the environment repository's roles/fail2ban and scrubbed for the Collection: galaxy namespace mortis, the molecule scenario calls the role by its FQCN (and takes its paths from the workflow, like docker's), README examples use mortis.kamino.fail2ban, repository-local issue references are dropped. mock_roles in .ansible-lint lists the new FQCN. Not verified locally: the molecule scenario (runs on the kamino-molecule runner in CI) and ansible-test sanity. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
26 lines
560 B
YAML
26 lines
560 B
YAML
---
|
|
fail2ban_package_name: fail2ban
|
|
|
|
fail2ban_jails:
|
|
- name: sshd
|
|
enabled: true
|
|
port: ssh
|
|
filter: sshd
|
|
# Read the journal, not /var/log/auth.log: sshd logs to the journal on
|
|
# Ubuntu 24.04 and rsyslog's auth.log stays empty. Pinned so detection does
|
|
# not depend on the package's default backend. The filter's own journalmatch
|
|
# applies.
|
|
backend: systemd
|
|
maxretry: 3
|
|
bantime: "1h"
|
|
findtime: "10m"
|
|
|
|
fail2ban_service:
|
|
enabled: true
|
|
state: started
|
|
|
|
fail2ban_defaults:
|
|
maxretry: 5
|
|
bantime: 600
|
|
findtime: 600
|