mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-23 00:33:24 +01:00
8a17193dd0
This makes text files compliant to POSIX which requires every line of a text file to end with a newline character [1][2]. [1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_403 [2] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
20 lines
446 B
YAML
20 lines
446 B
YAML
---
|
|
- name: install fail2ban and configure sshd
|
|
hosts: "{{ hosts }}"
|
|
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
|