Add telegraf role
And enable it for ceph nodes.
This commit is contained in:
parent
14dd446fd4
commit
0a0ce7e2a5
6 changed files with 111 additions and 0 deletions
11
roles/telegraf/tasks/main.yml
Normal file
11
roles/telegraf/tasks/main.yml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue