ansible-datadog
ansible-datadog copied to clipboard
"Download current RPM key" task runs invariably.
Downloads to /tmp/ are not idempotent.
https://github.com/DataDog/ansible-datadog/blob/d752114368da9cae1c86340f2e3f1ac3448e945a/tasks/pkg-redhat.yml#L28-L32
rpm_key
can accept a URL rather than a local path.
Hi,
Sorry for the inconvenience but we had to revert #475 because it created a regression.
Merging this PR broke all the playbooks ran with variables datadog_yum_gpgkey_*
set to local file with file:///
prefix, because rpm_key
module does not allow importing key on the local file system with file:///
prefix.
We will look for another solution that would definitely solve this issue without breaking key import when using path to keys on the local file system.
Why not just change the download destination to a non-tmp location or at least remove the force
?