Обновить roles/base_setup/tasks/main.yml

This commit is contained in:
zailon 2026-05-13 10:00:43 +05:00
parent 712d1af6dd
commit 3bffa17b70

View File

@ -208,6 +208,14 @@
tags: [deploy_base, users]
# ========== SSH Security Hardening ==========
- name: Ensure privilege separation directory exists for sshd validation
file:
path: /run/sshd
state: directory
mode: '0755'
become: yes
tags: [deploy_base, ssh]
- name: Configure SSH security
lineinfile:
path: /etc/ssh/sshd_config