2020-03-08 15:41:55 +00:00
|
|
|
---
|
|
|
|
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
|
|
|
|
|
2023-04-28 21:25:21 +00:00
|
|
|
- name: Telegraf - Add telegraf repo
|
2023-03-11 17:37:29 +00:00
|
|
|
become: true
|
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
|
2023-04-28 21:25:21 +00:00
|
|
|
enabled: true
|
|
|
|
gpgcheck: true
|
2023-03-11 17:37:29 +00:00
|
|
|
gpgkey: https://repos.influxdata.com/influxdata-archive_compat.key
|
2023-04-28 21:25:21 +00:00
|
|
|
- name: Telegraf - Install telegraf
|
2023-03-11 17:37:29 +00:00
|
|
|
become: true
|
2021-08-28 14:50:37 +00:00
|
|
|
ansible.builtin.yum:
|
2020-03-08 15:41:55 +00:00
|
|
|
name: telegraf
|
|
|
|
state: latest
|
2023-04-28 21:25:21 +00:00
|
|
|
update_cache: true
|
|
|
|
diff: false
|