1
0
Fork 0

Update to use actual RPis (raspbian)

This commit is contained in:
Andrew Tomaka 2023-10-15 22:55:26 -04:00
parent 8257b0b4a7
commit a9b2823a13
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
7 changed files with 5 additions and 135 deletions

View file

@ -9,28 +9,6 @@
with_items:
- regexp: '^PasswordAuthentication'
line: 'PasswordAuthentication no'
- regexp: '^PermitRootLogin'
- regexp: '^#PermitRootLogin'
line: 'PermitRootLogin no'
notify: Restart ssh
- name: Install fail2ban
apt:
name: fail2ban
state: present
- name: Configure fail2ban
blockinfile:
path: /etc/fail2ban/jail.local
create: yes
mode: 0644
block: |
[sshd]
enabled = true
filter = sshd
# notify: Restart fail2ban
- name: Turn fail2ban off for now
service:
name: fail2ban
enabled: false
state: stopped