Files
lab-rack/install_telegraf.yml
T

25 lines
583 B
YAML
Raw Normal View History

2026-07-06 16:45:51 +02:00
---
- name: Deploy Telegraf to Goldeneye
hosts: endor
become: yes
tasks:
- name: Install Telegraf package
ansible.builtin.apt:
name: telegraf
state: present
update_cache: yes
- name: Push Telegraf configuration
ansible.builtin.template:
src: templates/telegraf.conf.j2
dest: /etc/telegraf/telegraf.conf
owner: root
group: root
mode: '0644'
- name: Ensure Telegraf is started and enabled
ansible.builtin.service:
name: telegraf
state: restarted
enabled: yes