Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sshd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tilman Vatteroth
sshd
Commits
58557a31
Commit
58557a31
authored
3 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Handlers instead of register-when
parent
bf0a0226
Branches
Branches containing commit
Tags
v2.5.0
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
handlers/main.yml
+5
-0
5 additions, 0 deletions
handlers/main.yml
tasks/main.yml
+1
-7
1 addition, 7 deletions
tasks/main.yml
with
6 additions
and
7 deletions
handlers/main.yml
+
5
−
0
View file @
58557a31
...
...
@@ -4,3 +4,8 @@
name
:
sshd
enabled
:
true
state
:
restarted
-
name
:
Delete old config
file
:
path
:
/etc/ssh/sshd_config
state
:
absent
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
1
−
7
View file @
58557a31
...
...
@@ -19,13 +19,7 @@
line
:
"
#BEGIN
ANSIBLE
MANAGED
SSH
DEFAULTS"
state
:
present
check_mode
:
true
register
:
config_no_blocks
-
name
:
Delete old config
file
:
path
:
/etc/ssh/sshd_config
state
:
absent
when
:
config_no_blocks.changed
notify
:
Delete old config
-
name
:
Load config template
set_fact
:
...
...
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