21 lines
377 B
YAML
21 lines
377 B
YAML
|
---
|
||
|
- name: Converge
|
||
|
hosts: all
|
||
|
roles:
|
||
|
- ansible-role-telegraf
|
||
|
vars:
|
||
|
telegraf_outputs:
|
||
|
file:
|
||
|
files: ['stdout', '/tmp/metrics.out']
|
||
|
telegraf_inputs:
|
||
|
cpu:
|
||
|
percpu: true
|
||
|
totalcpu: true
|
||
|
collect_cpu_time: false
|
||
|
report_active: false
|
||
|
|
||
|
pre_tasks:
|
||
|
- name: update apt cache
|
||
|
apt:
|
||
|
update_cache: true
|