Update telegraf to use influx2

This commit is contained in:
Wilfried OLLIVIER 2022-06-01 20:34:48 +02:00
parent f91c55e3e1
commit 32f9eda9b6
6 changed files with 4584 additions and 617 deletions

View file

@ -1,5 +1,4 @@
---
# https://docs.influxdata.com/telegraf/v1.11/introduction/installation/
- name: Ensure apt-transport-https
@ -8,17 +7,12 @@
state: present
update_cache: yes
- name: Ensure python dependencies
apt:
name: [ 'python-requests', 'python-pip' ]
state: present
- name: Ensure Influx Data signing key
- name: Ensure influxdata signing key
apt_key:
url: "{{ influx.repo }}"
state: present
- name: Ensure Influx Data repo
- name: Ensure influxdata repo
apt_repository:
repo: deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable
state: present
@ -54,7 +48,7 @@
- name: Ensure Telegraf can access Docker socket
user: name=telegraf
group=telegraf
groups=docker
append=yes
group=telegraf
groups=docker
append=yes
when: "'docker' in services"