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

20 lines
544 B
YAML
Raw Normal View History

---
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
- name: Telegraf - Add telegraf repo
2023-03-11 17:37:29 +00:00
become: true
ansible.builtin.yum_repository:
name: influxdb
2020-03-08 16:56:50 +00:00
description: InfluxDB Repository
baseurl: https://repos.influxdata.com/rhel/7/\$basearch/stable
enabled: true
gpgcheck: true
2023-03-11 17:37:29 +00:00
gpgkey: https://repos.influxdata.com/influxdata-archive_compat.key
- name: Telegraf - Install telegraf
2023-03-11 17:37:29 +00:00
become: true
ansible.builtin.yum:
name: telegraf
state: latest
update_cache: true
diff: false