ansible-role-server/tasks/telegraf-FreeBSD.yml
Jannik Beyerstedt a0ac0a67a7 [TIDY] move when statements, fix whitespace
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.
2022-02-13 20:52:02 +01:00

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