Closed organicnz closed 1 year ago
fail2ban_ignoreips
is a (simple) list
variable. I should be used like this:
#################################################
# DO Community Playbooks: Initial Server Setup
#################################################
---
- hosts: all
become: true
vars_files:
- vars/default.yml
roles:
- oefenweb.fail2ban
vars:
fail2ban_ignoreips:
- "{{ ansible_lo['ipv4']['address'] }}/8"
- "{{ ansible_default_ipv4['address'] }}"
fail2ban_bantime: 3600
fail2ban_services:
# TODO: In Ubuntu 16.04 this is sshd
- name: "{{ fail2ban_ssh_service_name }}"
maxretry: 5
# TODO: In Ubuntu 16.04 this is sshd-ddos
- name: "{{ fail2ban_ssh_service_name }}-ddos"
maxretry: 5
Thank you very much for your help, mate :)
Hi, folks,
I'm sorry for asking via issues. Unfortunately, I don't have enough expertise to figure out how to add
fail2ban_ignoreips
as vars in the playbook. I would be very grateful if you could add this option to the readme.md. Thank you :)Currently, it's put together in this way:
GitLab repository