-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Role downloads agent when current version is already up to date #265
Comments
Hi @marchenm, Thanks for the report! I made a PR: #269 to add logic to not download the msi if the detected installed version is the same as the set |
https://docs.ansible.com/ansible/latest/modules/github_release_module.html This module should be able to give you the latest release version |
Thanks for the suggestion, however while this module could help in some cases, using the github releases won't work everytime, for two main reasons:
|
We're using Ansible to automatically update Datadog, and we'd like to do this rather frequently. However, due to the fact that this Ansible role always downloads the installer, the process can take extremely long. This doesn't scale to multiple servers very well, so it'd be nice to see an improvement. Any chance of this issue being resolved? |
Hi Joeri! Your concern is valid and it is something we should fix, but that we haven't prioritized yet. I'll bump it internally. Note, though, that not pinning a version is not the recommended configuration of the role. If you pin a specific version of the Agent to install (and update it manually when you think it is convenient) then it won't download the MSI again on each run. Also, pinning ensures that you won't get updates at a time when you don't want them, which is the main reason we recommend it. |
Agreed, more idempotency in this role, please. |
@grizzlyhazard hi 👋 do you have any other issues specifically other than the one reported in the root comment here? If so, I'd definitely like to know what they are - feel free to open more issues or note them here. Thanks! |
Thanks for looking into this! 🙏 And +1 on somehow allowing to run the role, even with "latest", and not reinstalling on each run. |
On windows, the role isn't idempotent. It will download the agent every single time even when there isn't a change. There should be a preliminary version check before downloading the agent.
The text was updated successfully, but these errors were encountered: