First attempt at domain-wide Telegraf logging. (debug-only)

This commit is contained in:
2021-03-20 12:05:18 -05:00
parent 61677066a6
commit 9250767d10
7 changed files with 186 additions and 30 deletions

View File

@ -1,21 +0,0 @@
---
# Application that populates InfluxDB with metric data.
# https://docs.influxdata.com/telegraf/v1.17/introduction/getting-started/
- name: Server | Telegraf | Check
shell: which telegraf
register: telegraf_check
ignore_errors: yes
- name: Server | Telegraf | Install
shell: "{{ item }}"
args:
chdir: "{{ ansible_env.HOME }}/Downloads/"
loop:
- mv telegraf_1.17.3-1_amd64.deb ~/TRASH/ 2>/dev/null; exit 0
- wget https://dl.influxdata.com/telegraf/releases/telegraf_1.17.3-1_amd64.deb
- dpkg -i telegraf_1.17.3-1_amd64.deb
- service telegraf start
when: telegraf_check.failed
# TODO: Add cron job(s)