2020-03-08 15:41:55 +00:00
|
|
|
---
|
|
|
|
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
|
|
|
|
|
|
|
|
- name: telegraf - Add telegraf repo
|
|
|
|
become: yes
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.yum_repository:
|
2020-03-08 15:41:55 +00:00
|
|
|
name: influxdb
|
2020-03-08 16:56:50 +00:00
|
|
|
description: InfluxDB Repository
|
2022-02-13 19:52:02 +00:00
|
|
|
baseurl: https://repos.influxdata.com/rhel/7/\$basearch/stable
|
2020-03-08 15:41:55 +00:00
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2020-03-08 16:56:50 +00:00
|
|
|
gpgkey: https://repos.influxdata.com/influxdb.key
|
2020-03-08 15:41:55 +00:00
|
|
|
- name: telegraf - Install telegraf
|
|
|
|
become: yes
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.yum:
|
2020-03-08 15:41:55 +00:00
|
|
|
name: telegraf
|
|
|
|
state: latest
|
|
|
|
update_cache: yes
|