feat: more syslog/telegraf stuff

This commit is contained in:
2023-01-11 02:20:00 +01:00
parent 88ecce43b0
commit b53c1918c9
12 changed files with 114 additions and 0 deletions

View 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