2024-03-20 16:07:38 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Setup fail2ban
|
2024-03-20 16:47:06 -07:00
|
|
|
hosts: 127.0.0.1
|
|
|
|
connection: local
|
2024-03-20 16:31:01 -07:00
|
|
|
|
2024-03-20 16:18:54 -07:00
|
|
|
- name: This command will echo text to a file as a test
|
|
|
|
ansible.builtin.shell:
|
2024-03-20 16:31:01 -07:00
|
|
|
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
|