Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-public
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
system
ansible-public
Commits
60273bdb
Commit
60273bdb
authored
2 years ago
by
Baptiste DE RENZO
Browse files
Options
Downloads
Patches
Plain Diff
Force ssh key for root login, Refs
#37430
parent
16ae1b1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/sysconfig/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/sysconfig/tasks/main.yml
with
1 addition
and
1 deletion
roles/sysconfig/tasks/main.yml
+
1
−
1
View file @
60273bdb
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
-
name
:
enable root login via ssh with key
-
name
:
enable root login via ssh with key
ansible.builtin.replace
:
ansible.builtin.replace
:
dest
:
/etc/ssh/sshd_config
dest
:
/etc/ssh/sshd_config
regexp
:
^#PermitRootLogin
(yes|without-password|prohibit-password)
regexp
:
^#
?
PermitRootLogin
.*
replace
:
PermitRootLogin without-password
replace
:
PermitRootLogin without-password
notify
:
restart sshd
notify
:
restart sshd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment