added test installation netdata
This commit is contained in:
2
host_vars/debian-test.universe.local.yml
Normal file
2
host_vars/debian-test.universe.local.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
netdata: true
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
|
---
|
||||||
# Load distro specific variables
|
# Load distro specific variables
|
||||||
- include_vars: "{{ ansible_distribution }}.yml"
|
- include_vars: "{{ ansible_distribution }}.yml"
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- include_tasks: utilities/netdata.yml
|
||||||
|
when: netdata is defined and netmon == true
|
||||||
|
|
||||||
|
# vim: ts=2 sw=2
|
||||||
|
|||||||
13
roles/server/tasks/utilities/netdata.yml
Normal file
13
roles/server/tasks/utilities/netdata.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: Install netdata
|
||||||
|
package:
|
||||||
|
name: netdata
|
||||||
|
state: installed
|
||||||
|
|
||||||
|
- name: Enable and start netdata service
|
||||||
|
service:
|
||||||
|
name: netdata
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
|
# vim: ts=2 sw=2
|
||||||
Reference in New Issue
Block a user