mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-26 02:05:06 +01:00
18 lines
391 B
YAML
18 lines
391 B
YAML
---
|
|
- hosts: all
|
|
become: yes
|
|
tasks:
|
|
- name: install fail2ban
|
|
apt:
|
|
name:
|
|
- fail2ban
|
|
update_cache: yes
|
|
- name: copy fail2ban configfiles
|
|
copy:
|
|
src: configfiles/debian-sshd-default.conf
|
|
dest: /etc/fail2ban/jail.d/debian-sshd-default.conf
|
|
- name: restart fail2ban
|
|
systemd:
|
|
state: restarted
|
|
daemon_reload: yes
|
|
name: fail2ban |