publish to ansible-galaxy
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
---
|
||||
|
||||
- name: Disable SSH root login without password
|
||||
lineinfile:
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?PermitRootLogin .*$'
|
||||
line: "PermitRootLogin prohibit-password"
|
||||
line: "PermitRootLogin prohibit-password"
|
||||
state: present
|
||||
validate: '/usr/sbin/sshd -t -f %s'
|
||||
notify: restart ssh
|
||||
|
||||
Reference in New Issue
Block a user