mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 22:31:15 +01:00
feat: more syslog/telegraf stuff
This commit is contained in:
31
roles/monitoring-master/tasks/logs.yaml
Normal file
31
roles/monitoring-master/tasks/logs.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
- name: Copy telegraf-key
|
||||
copy:
|
||||
src: influxdb.key
|
||||
dest: /etc/apt/trusted.gpg.d/influxdb.asc
|
||||
mode: 0644
|
||||
notify:
|
||||
apt update
|
||||
|
||||
- name: Add Influx repo
|
||||
copy:
|
||||
src: influxdb.list
|
||||
dest: /etc/apt/sources.list.d/influxdb.list
|
||||
mode: 0644
|
||||
notify:
|
||||
apt update
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Install Telegraf
|
||||
apt:
|
||||
pkg:
|
||||
- telegraf
|
||||
|
||||
- name: Copy telegraf config files
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/telegraf/telegraf.d/
|
||||
with_items:
|
||||
- telegraf_influxdb.conf
|
||||
- telegraf_rsyslog_input.conf
|
||||
notify: restart telegraf
|
||||
Reference in New Issue
Block a user