Initial commit
This commit is contained in:
12
DOC/README.disable-root-login
Normal file
12
DOC/README.disable-root-login
Normal file
@ -0,0 +1,12 @@
|
||||
handlers:
|
||||
- name: "Restart sshd"
|
||||
service:
|
||||
name: "sshd"
|
||||
state: "restarted"
|
||||
|
||||
- name: "Disable root login via SSH"
|
||||
lineinfile:
|
||||
dest: "/etc/ssh/sshd_config"
|
||||
regexp: "^PermitRootLogin"
|
||||
line: "PermitRootLogin no"
|
||||
notify: "Restart sshd"
|
Reference in New Issue
Block a user