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
15 lines
805 B
Django/Jinja
15 lines
805 B
Django/Jinja
# Managed by Ansible - Fail2Ban jail for {{ fail2ban_service_name }}
|
|
[{{ fail2ban_service_name }}]
|
|
enabled = {{ fail2ban_service_jail.enabled | default(true) | lower }}
|
|
port = {{ fail2ban_service_jail.port | default('any') }}
|
|
filter = {{ fail2ban_service_jail.filter | default(fail2ban_service_name) }}
|
|
{% if fail2ban_service_jail.journalmatch is defined %}
|
|
backend = {{ fail2ban_service_jail.backend | default('systemd') }}
|
|
journalmatch = {{ fail2ban_service_jail.journalmatch }}
|
|
{% else %}
|
|
logpath = {{ fail2ban_service_jail.logpath }}
|
|
{% endif %}
|
|
maxretry = {{ fail2ban_service_jail.maxretry | default(fail2ban_defaults.maxretry) }}
|
|
bantime = {{ fail2ban_service_jail.bantime | default(fail2ban_defaults.bantime) }}
|
|
findtime = {{ fail2ban_service_jail.findtime | default(fail2ban_defaults.findtime) }}
|