2021-05-02 16:19:11 +00:00
|
|
|
---
|
|
|
|
# Server/Telegraf: Install and Setup Telegraf Monitoring - FreeBSD Version
|
|
|
|
|
2023-04-28 21:25:21 +00:00
|
|
|
- name: Telegraf - Install telegraf
|
|
|
|
become: true
|
2021-05-02 16:19:11 +00:00
|
|
|
ansible.builtin.package:
|
|
|
|
name: telegraf
|
|
|
|
state: latest
|
2023-04-28 21:25:21 +00:00
|
|
|
diff: false
|
2021-05-02 16:19:11 +00:00
|
|
|
|
|
|
|
# # Install SNMP utilities for telegraf monitoring
|
2023-04-28 21:25:21 +00:00
|
|
|
# - name: Telegraf - Install SNMP utilities
|
2022-02-13 19:52:02 +00:00
|
|
|
# when: telegraf_ubnt_ns_ips is defined
|
2023-04-28 21:25:21 +00:00
|
|
|
# become: true
|
2021-05-02 16:19:11 +00:00
|
|
|
# ansible.builtin.package:
|
|
|
|
# name: "{{ packages }}"
|
|
|
|
# state: present
|
|
|
|
# vars:
|
|
|
|
# packages:
|
|
|
|
# - snmp
|
|
|
|
# - snmp-mibs-downloader
|
2023-04-28 21:25:21 +00:00
|
|
|
# diff: false
|
2021-05-02 16:19:11 +00:00
|
|
|
|
2023-04-28 21:25:21 +00:00
|
|
|
- name: Telegraf - Install SNMP utilities
|
2022-02-13 19:52:02 +00:00
|
|
|
when: telegraf_ubnt_ns_ips is defined
|
2023-04-28 21:25:21 +00:00
|
|
|
become: true
|
2021-05-02 16:19:11 +00:00
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- snmp
|
|
|
|
- snmp-mibs-downloader
|
2023-04-28 21:25:21 +00:00
|
|
|
diff: false
|