[CODE] add CentOS support to telegraf and cronmails (fix #6)
This commit is contained in:
parent
cb289b8fb5
commit
71b3e80227
7 changed files with 88 additions and 30 deletions
18
tasks/telegraf-Centos.yml
Normal file
18
tasks/telegraf-Centos.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue