Обновить roles/base_setup/tasks/main.yml
This commit is contained in:
parent
712d1af6dd
commit
3bffa17b70
@ -208,6 +208,14 @@
|
|||||||
tags: [deploy_base, users]
|
tags: [deploy_base, users]
|
||||||
|
|
||||||
# ========== SSH Security Hardening ==========
|
# ========== 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
|
- name: Configure SSH security
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user