ansible-role-server/tasks/telegraf-FreeBSD.yml

35 lines
780 B
YAML

---
# Server/Telegraf: Install and Setup Telegraf Monitoring - FreeBSD Version
- name: Telegraf - Install telegraf
become: true
ansible.builtin.package:
name: telegraf
state: latest
diff: false
# # Install SNMP utilities for telegraf monitoring
# - name: Telegraf - Install SNMP utilities
# when: telegraf_ubnt_ns_ips is defined
# become: true
# ansible.builtin.package:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - snmp
# - snmp-mibs-downloader
# diff: false
- name: Telegraf - Install SNMP utilities
when: telegraf_ubnt_ns_ips is defined
become: true
ansible.builtin.package:
name: "{{ packages }}"
state: present
vars:
packages:
- snmp
- snmp-mibs-downloader
diff: false