DataDog / ansible-datadog

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

Properly detect when DEB package is actually installed #551

Closed bkabrda closed 6 months ago

bkabrda commented 6 months ago

This fixes https://github.com/DataDog/ansible-datadog/issues/519 - dpkg -s will return information even for a package that's been uninstalled. We can use a different query and ensure the package is actually installed while extracting the version.