Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
role_simple_backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
SLUB - Referat 2.5
Ansible
role_simple_backup
Commits
d619fba9
Commit
d619fba9
authored
1 year ago
by
Hannes Braun
Browse files
Options
Downloads
Patches
Plain Diff
Changed systemd unit creation from static to include_role
parent
5ed2d25d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ansible.cfg
+1
-1
1 addition, 1 deletion
ansible.cfg
defaults/main.yml
+3
-0
3 additions, 0 deletions
defaults/main.yml
requirements.yml
+5
-0
5 additions, 0 deletions
requirements.yml
tasks/main.yml
+5
-28
5 additions, 28 deletions
tasks/main.yml
with
14 additions
and
29 deletions
ansible.cfg
+
1
−
1
View file @
d619fba9
[defaults]
roles_path
=
../:
#
roles_path = ../:
This diff is collapsed.
Click to expand it.
defaults/main.yml
+
3
−
0
View file @
d619fba9
...
...
@@ -9,3 +9,6 @@ simple_backup_config:
nfs_mount_path
:
# The path where the nfs will be mounted
nfs_server
:
# The nfs server ip address
nfs_volume_path
:
# The volume the nfs is placed on the nfs server
timers
:
simple-backup
:
This diff is collapsed.
Click to expand it.
requirements.yml
0 → 100644
+
5
−
0
View file @
d619fba9
---
collections
:
-
name
:
role-systemd-timer
source
:
https://git.slub-dresden.de/slub-referat-2.5/ansible/role-systemd-timer.git
type
:
git
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
5
−
28
View file @
d619fba9
...
...
@@ -22,31 +22,8 @@
group
:
root
mode
:
'
0644'
become
:
true
-
name
:
Upload files and enable timer
block
:
-
name
:
Uploading service file
ansible.builtin.copy
:
src
:
files/etc/systemd/system/simple-backup.service
dest
:
/etc/systemd/system/simple-backup.service
owner
:
root
group
:
root
mode
:
0644
-
name
:
Uploading timer file
ansible.builtin.copy
:
src
:
files/etc/systemd/system/simple-backup.timer
dest
:
/etc/systemd/system/simple-backup.timer
owner
:
root
group
:
root
mode
:
0644
-
name
:
Enabling timers
ansible.builtin.systemd
:
name
:
"
simple-backup.timer"
enabled
:
true
state
:
started
masked
:
false
scope
:
system
notify
:
Reload systemd
become
:
true
-
name
:
Create systemd service and timer units
ansible.builtin.include_role
:
name
:
role-systemd-timer
with_dict
:
timers
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