--- # 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/\$releasever/\$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