Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

security.yml 784B

12345678910111213141516171819202122232425
  1. - name: Install security-related packages
  2. apt: pkg={{ item }} state=installed
  3. with_items:
  4. - fail2ban
  5. - lynis
  6. - rkhunter
  7. - name: Copy fail2ban configuration into place
  8. template: src=etc_fail2ban_jail.local.j2 dest=/etc/fail2ban/jail.local
  9. notify: restart fail2ban
  10. - name: Copy fail2ban dovecot configuration into place
  11. copy: src=etc_fail2ban_filter.d_dovecot-pop3imap.conf dest=/etc/fail2ban/filter.d/dovecot-pop3imap.conf
  12. notify: restart fail2ban
  13. - name: Ensure fail2ban is started
  14. service: name=fail2ban state=started
  15. - name: Update sshd config for PFS and more secure defaults
  16. template: src=sshd.j2 dest=/etc/ssh/sshd_config
  17. notify: restart ssh
  18. - name: Update ssh config for more secure defaults
  19. template: src=ssh.j2 dest=/etc/ssh/ssh_config