Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
icinga
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
webarch
icinga
Commits
6aae5d8d
Commit
6aae5d8d
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Add systemd symlink
parent
e3ed0fec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23947
passed
2 years ago
Stage: lint
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/install.yml
+31
-1
31 additions, 1 deletion
tasks/install.yml
with
31 additions
and
1 deletion
tasks/install.yml
+
31
−
1
View file @
6aae5d8d
...
...
@@ -27,7 +27,9 @@
-
monitoring-plugins-systemd
state
:
present
default_release
:
"
{{
ansible_distribution_release
}}-backports"
when
:
icinga_plugin_systemd.rc ==
0
when
:
-
ansible_distribution_release == "bullseye"
-
icinga_plugin_systemd.rc ==
0
-
name
:
Bookworm packages present
ansible.builtin.apt
:
...
...
@@ -36,6 +38,34 @@
state
:
present
when
:
ansible_distribution_release is regex('^bookworm$')
-
name
:
Check if /usr/lib/nagios/plugins/check_systemd exists
ansible.builtin.stat
:
path
:
/usr/lib/nagios/plugins/check_systemd
register
:
icinga_plugin_systemd_file
-
name
:
Check if /usr/lib/nagios/plugins/check_systemd.py exists
ansible.builtin.stat
:
path
:
/usr/lib/nagios/plugins/check_systemd.py
register
:
icinga_plugin_systemd_symlink
when
:
-
icinga_plugin_systemd_file.stat.exists | bool
-
icinga_plugin_systemd_file.stat.isreg | bool
-
name
:
Symlink check_systemd.py to check_systemd
ansible.builtin.file
:
state
:
link
src
:
/usr/lib/nagios/plugins/check_systemd
dest
:
/usr/lib/nagios/plugins/check_systemd.py
follow
:
false
mode
:
0777
owner
:
root
group
:
root
when
:
-
icinga_plugin_systemd_file.stat.exists | bool
-
icinga_plugin_systemd_file.stat.isreg | bool
-
icinga_plugin_systemd_symlink is defined
-
not icinga_plugin_systemd_symlink.stat.exists | bool
-
name
:
Icinga package present
ansible.builtin.apt
:
pkg
:
...
...
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