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

32 lines
733 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: yes
ansible.builtin.package:
name: telegraf
state: latest
# # Install SNMP utilities for telegraf monitoring
# - name: telegraf - Install SNMP utilities
# when: telegraf_ubnt_ns_ips is defined
2021-05-02 16:19:11 +00:00
# become: yes
# ansible.builtin.package:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - snmp
# - snmp-mibs-downloader
- name: telegraf - Install SNMP utilities
when: telegraf_ubnt_ns_ips is defined
2021-05-02 16:19:11 +00:00
become: yes
ansible.builtin.package:
name: "{{ packages }}"
state: present
vars:
packages:
- snmp
- snmp-mibs-downloader