more testing

This commit is contained in:
Jeff Oakes 2024-03-20 16:31:01 -07:00
parent 0f5457ad77
commit 7a5cf8ecf0

View file

@ -1,19 +1,18 @@
---
- name: Setup fail2ban
hosts: localhost
roles:
- nbigot.ansible-fail2ban
vars:
fail2ban_services:
- name: sshd
port: 22
maxretry: 5
bantime: -1
fail2ban_ignoreips:
- 127.0.0.1/8
- 169.231.0.0/16
- 128.111.0.0/16
hosts: all
- name: This command will echo text to a file as a test
ansible.builtin.shell:
cmd: echo 'hello' > /tmp/hello.txt
- name: install fail2ban
ansible.builtin.dnf:
name: fail2ban
state: present
- name: start fail2ban
ansible.builtin.systemd_service:
state: started
enabled: true
name: fail2ban