system: root-логин по SSH запрещён, включены автообновления безопасности

- security_ssh_permit_root_login: "no" — ansible ходит под major с become,
  root по SSH не нужен
- security_autoupdate_enabled: true — unattended-upgrades ставит только
  патчи из security-репозиториев, автоперезагрузка выключена
This commit is contained in:
av
2026-09-06 16:14:48 +03:00
parent 6a46a00f3b
commit 1f203c736c
+7 -2
View File
@@ -27,8 +27,13 @@
ansible.builtin.import_role: ansible.builtin.import_role:
name: geerlingguy.security name: geerlingguy.security
vars: vars:
security_ssh_permit_root_login: "yes" # Root по SSH не нужен: ansible ходит под непривилегированным major с
security_autoupdate_enabled: "no" # become. Заодно defense-in-depth — если PasswordAuthentication когда-то
# вернётся в "yes", root не откроется по паролю.
security_ssh_permit_root_login: "no"
# unattended-upgrades: шаблон роли ограничен security-репозиториями,
# автоматическая перезагрузка выключена дефолтом роли.
security_autoupdate_enabled: true
security_fail2ban_enabled: true security_fail2ban_enabled: true
- name: "Copy keep files script" - name: "Copy keep files script"