Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
borgbackup_client
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSI Ansible
borgbackup_client
Commits
73264667
Commit
73264667
authored
3 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Handlers instead of register-when
parent
0072fc9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
handlers/main.yml
+14
-0
14 additions, 0 deletions
handlers/main.yml
tasks/main.yml
+5
-21
5 additions, 21 deletions
tasks/main.yml
with
19 additions
and
21 deletions
handlers/main.yml
0 → 100644
+
14
−
0
View file @
73264667
---
-
name
:
Enable borgmatic timer
systemd
:
name
:
borgbackup.timer
enabled
:
true
daemon-reload
:
true
state
:
restarted
-
name
:
Enable borgmatic-check timer
systemd
:
name
:
borgbackup-check.timer
enabled
:
true
daemon-reload
:
true
state
:
restarted
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
5
−
21
View file @
73264667
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
owner
:
"
root"
owner
:
"
root"
group
:
"
root"
group
:
"
root"
mode
:
"
0644"
mode
:
"
0644"
register
:
service
notify
:
Enable borgmatic timer
-
name
:
Add borgbackup timer
-
name
:
Add borgbackup timer
template
:
template
:
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
owner
:
"
root"
owner
:
"
root"
group
:
"
root"
group
:
"
root"
mode
:
"
0644"
mode
:
"
0644"
register
:
timer
notify
:
Enable borgmatic
timer
-
name
:
Add borgbackup-check service
-
name
:
Add borgbackup-check service
copy
:
copy
:
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
owner
:
"
root"
owner
:
"
root"
group
:
"
root"
group
:
"
root"
mode
:
"
0644"
mode
:
"
0644"
register
:
check_service
notify
:
Enable borgmatic-check timer
-
name
:
Add borgbackup-check timer
-
name
:
Add borgbackup-check timer
copy
:
copy
:
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
owner
:
"
root"
owner
:
"
root"
group
:
"
root"
group
:
"
root"
mode
:
"
0644"
mode
:
"
0644"
register
:
check
_
timer
notify
:
Enable borgmatic-
check
timer
-
name
:
Copy notify script
-
name
:
Copy notify script
template
:
template
:
...
@@ -113,20 +113,4 @@
...
@@ -113,20 +113,4 @@
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
0644
register
:
notify
notify
:
Enable borgmatic-check timer
-
name
:
Reload systemctl
command
:
systemctl daemon-reload
when
:
"
service.changed
or
timer.changed
or
notify.changed"
-
name
:
Enable borgmatic timer
service
:
name
:
"
borgbackup.timer"
enabled
:
true
state
:
started
-
name
:
Enable borgmatic-check timer
service
:
name
:
"
borgbackup-check.timer"
enabled
:
true
state
:
started
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