Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

security.yml 651B

123456789101112131415161718
  1. - name: Install security-related packages
  2. apt: pkg={{ item }} state=installed
  3. with_items:
  4. - fail2ban
  5. - rkhunter
  6. - lynis
  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: Update sshd config to disallow root logins
  14. lineinfile: dest=/etc/ssh/sshd_config regexp=^PermitRootLogin line="PermitRootLogin no" state=present
  15. notify: restart ssh