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

35 lines
780 B
YAML
Raw Normal View History

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