21 lines
423 B
YAML
21 lines
423 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
|
|
telegraf_proxy_url: http://127.0.0.1:3128
|
|
|
|
pre_tasks:
|
|
- name: update apt cache
|
|
apt:
|
|
update_cache: true
|