Jannik Beyerstedt
a0ac0a67a7
Having the when condition of a task at the top instead of bottom is easiert to read. Also some spaces were another whitespace character on accident.
32 lines
733 B
YAML
32 lines
733 B
YAML
---
|
|
# 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
|
|
# 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
|
|
become: yes
|
|
ansible.builtin.package:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- snmp
|
|
- snmp-mibs-downloader
|