[GIT] refactor submodules: add all to own repo
This commit is contained in:
commit
be2b9bf3c0
27 changed files with 3311 additions and 0 deletions
36
tasks/telegraf.yml
Normal file
36
tasks/telegraf.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
# Server/Telegraf: Install and Setup Telegraf Monitoring
|
||||
# Variables:
|
||||
# - telegraf_snmp: boolean, enable SNMP monitoring
|
||||
# - telegraf_docker: boolean, enable docker monitoring
|
||||
|
||||
- name: telegraf - Install apt-transport-https
|
||||
become: yes
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
state: latest
|
||||
- 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 stretch stable
|
||||
state: present
|
||||
- name: telegraf - Install telegraf
|
||||
become: yes
|
||||
apt:
|
||||
name: telegraf
|
||||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: telegraf - Copy telegraf config
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ role_path }}/templates/telegraf.conf"
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
notify:
|
||||
- Enable and restart telegraf
|
||||
Loading…
Add table
Add a link
Reference in a new issue