First commit

This commit is contained in:
Fern Garden 2025-05-07 22:12:32 +08:00
commit dc708aa3dd
11 changed files with 340 additions and 0 deletions

View file

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