This commit is contained in:
Fern Garden 2025-05-08 09:17:30 +08:00
parent 667fc21c12
commit 75cacd3182
15 changed files with 125 additions and 148 deletions

View file

@ -1,7 +0,0 @@
- name: Disable root login
lineinfile:
path: "{{ sshd_config_file }}"
regexp: "^PermitRootLogin"
line: "PermitRootLogin no"
backup: yes
notify: restart sshd