mirror of
https://github.com/transatoshi-mw/grinminer.net.git
synced 2025-10-06 22:02:48 +00:00
updated ssh playbook
This commit is contained in:
@@ -9,9 +9,13 @@
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
- name: Download and install fail2ban
|
||||
- name: Copy fail2ban jail
|
||||
ansible.builtin.copy:
|
||||
src: /etc/fail2ban/jail.conf
|
||||
dest: /etc/fail2ban/jail.local
|
||||
|
||||
- name: Enable fail2ban
|
||||
ansible.builtin.shell:
|
||||
cmd: cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
|
||||
cmd: systemctl enable fail2ban
|
||||
cmd: systemctl start fail2ban
|
||||
|
||||
|
Reference in New Issue
Block a user