Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
role-systemd-timer
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-systemd-timer
Commits
05a3685d
Commit
05a3685d
authored
1 year ago
by
hofmann
Browse files
Options
Downloads
Patches
Plain Diff
insert block for handler
parent
c9eb90c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/main.yml
+29
-27
29 additions, 27 deletions
tasks/main.yml
with
29 additions
and
27 deletions
tasks/main.yml
+
29
−
27
View file @
05a3685d
---
-
name
:
Uploading service file
template
:
src
:
service.j2
dest
:
"
{{
systemd_base_path
|
default('/etc/systemd/system')
}}/{{
item.key
}}.service"
owner
:
"
{{
item.value.timer_user
|
default('root')
}}"
group
:
"
{{
item.value.timer_user
|
default('root')
}}"
mode
:
0644
with_dict
:
"
{{
timers
}}"
notify
:
Reload systemd
-
name
:
Upload files and enable timer
block
:
-
name
:
Uploading service file
template
:
src
:
service.j2
dest
:
"
{{
systemd_base_path
|
default('/etc/systemd/system')
}}/{{
item.key
}}.service"
owner
:
"
{{
item.value.timer_user
|
default('root')
}}"
group
:
"
{{
item.value.timer_user
|
default('root')
}}"
mode
:
0644
with_dict
:
"
{{
timers
}}"
-
name
:
Uploading timer file
template
:
src
:
timer.j2
dest
:
"
{{
systemd_base_path
|
default('/etc/systemd/system')
}}/{{
item.key
}}.timer"
owner
:
"
{{
item.value.timer_user
|
default('root')
}}"
group
:
"
{{
item.value.timer_user
|
default('root')
}}"
mode
:
0644
with_dict
:
"
{{
timers
}}"
notify
:
Reload systemd
-
name
:
Uploading timer file
template
:
src
:
timer.j2
dest
:
"
{{
systemd_base_path
|
default('/etc/systemd/system')
}}/{{
item.key
}}.timer"
owner
:
"
{{
item.value.timer_user
|
default('root')
}}"
group
:
"
{{
item.value.timer_user
|
default('root')
}}"
mode
:
0644
with_dict
:
"
{{
timers
}}"
-
name
:
Enabling timers
systemd
:
name
:
"
{{
item.key
}}.timer"
state
:
restarted
enabled
:
true
masked
:
false
daemon_reload
:
true
scope
:
"
{{
systemd_scope
|
default('system')
}}"
with_dict
:
"
{{
timers
}}"
\ No newline at end of file
-
name
:
Enabling timers
systemd
:
name
:
"
{{
item.key
}}.timer"
state
:
restarted
enabled
:
true
masked
:
false
scope
:
"
{{
systemd_scope
|
default('system')
}}"
with_dict
:
"
{{
timers
}}"
notify
:
Reload systemd
\ No newline at end of file
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