ansible-role-server/tasks/telegraf-Centos.yml
Jannik Beyerstedt a0ac0a67a7 [TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is
easiert to read. Also some spaces were another whitespace character on
accident.
2022-02-13 20:52:02 +01:00

19 lines
508 B
YAML

---
# Server/Telegraf: Install and Setup Telegraf Monitoring - CentOS Version
- name: telegraf - Add telegraf repo
become: yes
ansible.builtin.yum_repository:
name: influxdb
description: InfluxDB Repository
baseurl: https://repos.influxdata.com/rhel/7/\$basearch/stable
enabled: yes
gpgcheck: yes
gpgkey: https://repos.influxdata.com/influxdb.key
- name: telegraf - Install telegraf
become: yes
ansible.builtin.yum:
name: telegraf
state: latest
update_cache: yes