[CODE] add CentOS support to telegraf and cronmails (fix #6)

This commit is contained in:
Jannik Beyerstedt 2020-03-08 16:41:55 +01:00
parent cb289b8fb5
commit 71b3e80227
7 changed files with 88 additions and 30 deletions

18
tasks/telegraf-Centos.yml Normal file
View file

@ -0,0 +1,18 @@
---
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
- name: telegraf - Add telegraf repo
become: yes
yum_repository:
name: influxdb
description: "InfluxDB Repository - RHEL \$releasever"
baseurl: "https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable"
enabled: yes
gpgcheck: yes
gpgkey: "https://repos.influxdata.com/influxdb.key"
- name: telegraf - Install telegraf
become: yes
yum:
name: telegraf
state: latest
update_cache: yes