Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-node-exporter
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
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
hdacloud
ansible-node-exporter
Commits
c8e27969
Unverified
Commit
c8e27969
authored
6 years ago
by
Paweł Krupa
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Better tags and configuration handling (#66)
parent
00e37ce1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/configure.yml
+9
-0
9 additions, 0 deletions
tasks/configure.yml
tasks/install.yml
+0
-9
0 additions, 9 deletions
tasks/install.yml
tasks/main.yml
+9
-6
9 additions, 6 deletions
tasks/main.yml
with
18 additions
and
15 deletions
tasks/configure.yml
+
9
−
0
View file @
c8e27969
---
-
name
:
Copy the Node Exporter systemd service file
template
:
src
:
node_exporter.service.j2
dest
:
/etc/systemd/system/node_exporter.service
owner
:
root
group
:
root
mode
:
0644
notify
:
restart node_exporter
-
name
:
Create texfile collector dir
file
:
path
:
"
{{
node_exporter_textfile_dir
}}"
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
0
−
9
View file @
c8e27969
...
...
@@ -58,12 +58,3 @@
group
:
"
{{
node_exporter_system_group
}}"
notify
:
restart node_exporter
when
:
not ansible_check_mode
-
name
:
Copy the Node Exporter systemd service file
template
:
src
:
node_exporter.service.j2
dest
:
/etc/systemd/system/node_exporter.service
owner
:
root
group
:
root
mode
:
0644
notify
:
restart node_exporter
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
9
−
6
View file @
c8e27969
...
...
@@ -6,22 +6,25 @@
-
"
{{
ansible_distribution
|
lower
}}.yml"
-
"
{{
ansible_os_family
|
lower
}}.yml"
tags
:
-
always
-
node_exporter_install
-
node_exporter_configure
-
node_exporter_run
-
import_tasks
:
preflight.yml
tags
:
-
install
-
configure
-
node_exporter_install
-
node_exporter_configure
-
node_exporter_run
-
import_tasks
:
install.yml
become
:
true
tags
:
-
install
-
node_exporter_
install
-
import_tasks
:
configure.yml
become
:
true
tags
:
-
configure
-
node_exporter_
configure
-
name
:
Ensure Node Exporter is enabled on boot
become
:
true
...
...
@@ -30,4 +33,4 @@
name
:
node_exporter
enabled
:
true
tags
:
-
run
-
node_exporter_
run
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