Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
infra
ansible-shared
tsm
Commits
43958f35
Commit
43958f35
authored
5 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
tsm-backup: use handler for changed event; fix formatting
parent
e6bd39ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsm-backup/handlers/main.yml
+10
-3
10 additions, 3 deletions
tsm-backup/handlers/main.yml
tsm-backup/tasks/main.yml
+1
-8
1 addition, 8 deletions
tsm-backup/tasks/main.yml
with
11 additions
and
11 deletions
tsm-backup/handlers/main.yml
+
10
−
3
View file @
43958f35
---
---
# file: tsm-backup/handlers/main.yml
-
name
:
reload systemd service files
-
name
:
reload systemd service files
command
:
systemctl daemon-reload
systemd
:
daemon_reload
:
true
-
name
:
restart tsm service
-
name
:
restart tsm service
service
:
name=dsmcad state=restarted
service
:
name
:
dsmcad
state
:
restarted
-
name
:
stop dsmc sched service
service
:
name
:
dsmc
state
:
stopped
This diff is collapsed.
Click to expand it.
tsm-backup/tasks/main.yml
+
1
−
8
View file @
43958f35
...
@@ -16,18 +16,11 @@
...
@@ -16,18 +16,11 @@
state
:
absent
state
:
absent
notify
:
notify
:
-
reload systemd service files
-
reload systemd service files
-
stop dsmc sched service
tags
:
tags
:
-
tsm
-
tsm
register
:
cleanup
register
:
cleanup
-
name
:
ensure dsmc sched service is stopped
service
:
name
:
dsmc
state
:
stopped
tags
:
-
tsm
when
:
cleanup.changed
-
meta
:
flush_handlers
-
meta
:
flush_handlers
-
name
:
ensure deployment of our config
-
name
:
ensure deployment of our config
...
...
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