[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
25
tasks/telegraf-Debian.yml
Normal file
25
tasks/telegraf-Debian.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
# Server/Telegraf: Install and Setup Telegraf Monitoring - Debian Version
|
||||
|
||||
- name: telegraf - Install apt-transport-https
|
||||
become: yes
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
- name: telegraf - Add telegraf repo key
|
||||
become: yes
|
||||
apt_key:
|
||||
url: https://repos.influxdata.com/influxdb.key
|
||||
state: present
|
||||
- name: telegraf - Add telegraf repo
|
||||
become: yes
|
||||
apt_repository:
|
||||
repo: "deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
- name: telegraf - Install telegraf
|
||||
become: yes
|
||||
apt:
|
||||
name: telegraf
|
||||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
Loading…
Add table
Add a link
Reference in a new issue