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.
When using the config options
datadog_disable_untracked_checks
,datadog_disable_default_checks
ordatadog_disable_example_checks
, the Ansible run is very slow as it runs a separate task for every directory in theconf.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.