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

20 lines
544 B
YAML

---
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
- name: Telegraf - Add telegraf repo
become: true
ansible.builtin.yum_repository:
name: influxdb
description: InfluxDB Repository
baseurl: https://repos.influxdata.com/rhel/7/\$basearch/stable
enabled: true
gpgcheck: true
gpgkey: https://repos.influxdata.com/influxdata-archive_compat.key
- name: Telegraf - Install telegraf
become: true
ansible.builtin.yum:
name: telegraf
state: latest
update_cache: true
diff: false