Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszk_host
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
KSZK
Ansible
Roles
kszk_host
Commits
574b66bb
Commit
574b66bb
authored
3 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Only restart sshd if config changed
parent
42f5ff6c
Branches
Branches containing commit
Tags
0.1.0
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/ssh.yml
+2
-0
2 additions, 0 deletions
tasks/ssh.yml
with
2 additions
and
0 deletions
tasks/ssh.yml
+
2
−
0
View file @
574b66bb
...
@@ -5,9 +5,11 @@
...
@@ -5,9 +5,11 @@
src
:
etc/ssh/sshd_config
src
:
etc/ssh/sshd_config
dest
:
/etc/ssh/sshd_config
dest
:
/etc/ssh/sshd_config
mode
:
0600
mode
:
0600
register
:
sshd_config
-
name
:
Ensure sshd is started and enabled to start at boot.
-
name
:
Ensure sshd is started and enabled to start at boot.
service
:
service
:
name
:
sshd
name
:
sshd
state
:
restarted
state
:
restarted
enabled
:
yes
enabled
:
yes
when
:
sshd_config.changed
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