servers/roles/telegraf/tasks/main.yml
Timotej Lazar 6600a6fa36 telegraf: drop agent configuration stuff
Servers will be switched to Prometheus. Telegraf remains as a SNMP proxy
(see following commit).
2025-10-17 22:03:33 +02:00

22 lines
513 B
YAML

- name: Add telegraf package repo on Debian
when: ansible_os_family == "Debian"
deb822_repository:
name: influxdata
uris: https://repos.influxdata.com/debian
suites: stable
components: main
architectures: amd64
signed_by: https://repos.influxdata.com/influxdata-archive.key
notify: update package cache
- meta: flush_handlers
- name: Install telegraf
package:
name: telegraf
- name: Enable telegraf service
service:
name: telegraf
enabled: true
state: started