dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

Allow to have an empty plugins list #174

Open bfontaine opened 1 year ago

bfontaine commented 1 year ago

Hello,

Is your feature request related to a problem? Please describe. I’m trying not to have any plugin in the telegraf.conf file because I manage everything under telegraf.d, but if I use telegraf_plugins_default: [] the playbook includes this code:

# No plugins configured, added a mem plugin so telegraf doesn't stop working.
[[inputs.mem]]

I can’t find a way to have nothing here.

Describe the solution you'd like A variable of some sort to disable the behavior of adding inputs.mem if there are no plugins.