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

19 lines
527 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: yes
gpgcheck: yes
gpgkey: https://repos.influxdata.com/influxdata-archive_compat.key
- name: telegraf - Install telegraf
become: true
ansible.builtin.yum:
name: telegraf
state: latest
update_cache: yes