mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Added default pluging if nothing is configured
This commit is contained in:
@ -98,3 +98,10 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if telegraf_plugins_default is defined and telegraf_plugins_default|length == 0 %}
|
||||
{% if telegraf_plugins_extra is defined and telegraf_plugins_extra.keys() | length == 0 %}
|
||||
# No plugins configured, added a mem plugin so telegraf doesn't stop working.
|
||||
[[inputs.mem]]
|
||||
{% endif %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user