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

19 lines
527 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: yes
gpgcheck: yes
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: yes