Update to use actual RPis (raspbian)
This commit is contained in:
parent
8257b0b4a7
commit
a9b2823a13
7 changed files with 5 additions and 135 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue