Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetData
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
NetData
Commits
d6e1d50c
Commit
d6e1d50c
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#19 Set role header
parent
674655b6
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
+54
-46
54 additions, 46 deletions
tasks/main.yml
with
54 additions
and
46 deletions
tasks/main.yml
+
54
−
46
View file @
d6e1d50c
---
# file: roles/netdata/tasks/main.yml
-
name
:
"
Install
required
packages"
apt
:
pkg={{ item }}
state=installed
update_cache=yes
with_items
:
-
zlib1g-dev
-
gcc
-
make
-
git
-
autoconf
-
autogen
-
automake
-
pkg-config
-
uuid-dev
#FireQOS available from 15.04
#- firehol
-
name
:
"
NetData
Role"
set_fact
:
role_netdata_started=true
tags
:
always
-
name
:
"
Clone
NetData"
git
:
accept_hostkey
:
true
repo
:
"
https://github.com/firehol/netdata.git"
dest
:
"
/opt/netdata"
force
:
yes
depth
:
1
notify
:
-
"
Install
and
configure
NetData"
-
block
:
-
name
:
"
Install
startup
script"
template
:
src=etc_init_d_netdata
dest=/etc/init.d/netdata
owner=root
group=root
mode=755
notify
:
-
"
Include
NetData
to
Boot-List"
-
"
Start
NetData"
-
name
:
"
Install
required
packages"
apt
:
pkg={{ item }}
state=installed
update_cache=yes
with_items
:
-
zlib1g-dev
-
gcc
-
make
-
git
-
autoconf
-
autogen
-
automake
-
pkg-config
-
uuid-dev
#FireQOS available from 15.04
#- firehol
-
name
:
"
Configure
FireQoS"
template
:
src=etc_fireqos_fireqos.conf
dest=/etc/fireqos/fireqos.conf
owner=root
group=root
mode=755
when
:
false
notify
:
-
"
Start
FireQoS"
-
name
:
"
Clone
NetData"
git
:
accept_hostkey
:
true
repo
:
"
https://github.com/firehol/netdata.git"
dest
:
"
/opt/netdata"
force
:
yes
depth
:
1
notify
:
-
"
Install
and
configure
NetData"
-
name
:
"
Install
startup
script"
template
:
src=etc_init_d_netdata
dest=/etc/init.d/netdata
owner=root
group=root
mode=755
notify
:
-
"
Include
NetData
to
Boot-List"
-
"
Start
NetData"
-
name
:
"
Configure
FireQoS"
template
:
src=etc_fireqos_fireqos.conf
dest=/etc/fireqos/fireqos.conf
owner=root
group=root
mode=755
when
:
false
notify
:
-
"
Start
FireQoS"
when
:
'
"netdata"
not
in
excluded_roles'
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