Add telegraf role

And enable it for ceph nodes.
This commit is contained in:
Timotej Lazar 2024-11-27 17:36:20 +01:00
parent 14dd446fd4
commit 0a0ce7e2a5
6 changed files with 111 additions and 0 deletions

View file

@ -0,0 +1,11 @@
- name: Get influxdb info
set_fact:
influxdb_info: '{{ lookup("passwordstore", "vm/"~influxdb_host, returnall=true, missing="empty") | from_yaml }}'
- name: Create influxdb token for this host
include_tasks: token.yml
when: 'not ansible_check_mode and "influxdb_token" not in password'
- name: Install telegraf on Debian
include_tasks: debian.yml
when: ansible_os_family == "Debian"