ansible-role-server/tasks/telegraf-Centos.yml

19 lines
513 B
YAML
Raw Normal View History

---
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
- name: telegraf - Add telegraf repo
become: yes
yum_repository:
name: influxdb
description: "InfluxDB Repository - RHEL \$releasever"
baseurl: "https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable"
enabled: yes
gpgcheck: yes
gpgkey: "https://repos.influxdata.com/influxdb.key"
- name: telegraf - Install telegraf
become: yes
yum:
name: telegraf
state: latest
update_cache: yes