DataDog / ansible-datadog

Ansible role for Datadog Agent
Apache License 2.0
298 stars 222 forks source link

Speed up the conf.d checks #584

Closed a-rhodes closed 3 months ago

a-rhodes commented 3 months ago

When using the config options datadog_disable_untracked_checks, datadog_disable_default_checks or datadog_disable_example_checks, the Ansible run is very slow as it runs a separate task for every directory in the conf.d folder.

Instead, if we change the find call to look for conf.yaml* files in the subdirectories, we can filter the results and target specifically what we need, resulting in a much faster role.