many changes
added multiple tasks, files, configurations
This commit is contained in:
@@ -20,11 +20,28 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: restart_sshd
|
||||
|
||||
# template:
|
||||
# src: sshd_config.j2
|
||||
# dest: /etc/ssh/sshd_config
|
||||
# owner: root
|
||||
# group: root
|
||||
# mode: 0644
|
||||
# notify: restart_sshd
|
||||
- name: system setup | openssh | install fail2ban
|
||||
tags: fail2ban,ssh,system,settings
|
||||
package:
|
||||
name: fail2ban
|
||||
state: latest
|
||||
notify: restart_fail2ban
|
||||
|
||||
-name: system setup | openssh | enable fail2ban
|
||||
tags: fail2ban,ssh,system,settings
|
||||
service:
|
||||
name: fail2ban
|
||||
enabled: yes
|
||||
notify: restart_fail2ban
|
||||
|
||||
-name: system setup | openssh | copy local jail for fail2ban
|
||||
tags: fail2ban,ssh,system,settings
|
||||
copy:
|
||||
src: system_setup/jail.local
|
||||
dest: /etc/fail2ban/jail.local
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: restart_fail2ban
|
||||
|
||||
Reference in New Issue
Block a user