Comments (2)
Hello,
Thanks for the issue. We did not realise using this function was that inefficient. We already use Get-ItemProperty
elsewhere in the code, the change is quite simple. Just opened this PR to do the change you proposed.
#536
from ansible-datadog.
Can you do it? It is excruciating, I even noted that in some contexts it can take almost 20 minutes. This is madness.
From AWX (the target host is obfuscated because of sensitivity reasons):
I am not likely to fork and create a merge request but at least I provide you with a code snippet that you could easily test and use.
# Here is one close to what you expect as output:
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName,DisplayVersion,PSChildName -unique | Where-Object {$_.DisplayName -clike 'Datadog Agent'} | Format-List
# Output
DisplayName : Datadog Agent
DisplayVersion : 7.46.0.1
PSChildName : {9E3023E6-5C8C-4284-86FC-ECCD68AB07A3}
Thanks.
from ansible-datadog.
Related Issues (20)
- Hard fail if api_key is not provided HOT 2
- Implement removal of the Agent via `state: present | absent` in the role HOT 1
- Was the "Agent on host, app in containers" possibility of injecting APM overlooked? HOT 2
- Datadog APM does not work with Ansible 2.9 HOT 2
- Install will not work if deb package was removed from apt prior HOT 1
- Can a oom_kill_enabled option be added to config options? HOT 2
- windows install broken due to recent changes (fix proposed) HOT 1
- Mode 600 will set incorrect permissions on files. HOT 3
- Datadog Agent Installation Fails on `arm64` (M1) Mac Without Rosetta HOT 1
- Role is pulling in 7.28 as the stable version HOT 2
- Add support for Amazon Linux 2023 HOT 2
- A shell and a home folder HOT 2
- Add proxy usage for Windows agent install HOT 3
- The generated integration configs don't honor the order set in the playbook HOT 2
- Error when installing the datadog agent - Exception calling \"CreateProcess\" with \"7\" argument(s): \"CreateProcessW() failed (%1 is not a valid Win32 application, Win32ErrorCode 193 - 0x000000C1)\" HOT 1
- 4.21+ role version fails Molecule idempotency check on Windows HOT 1
- Password leaks in logs for datadog_windows_ddagentuser_password HOT 2
- Role not compatible with Ansible versions higher than v6.7.0 HOT 1
- Unable to find package datadog-agent available for amazon linux 2023 for ansible galaxy installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-datadog.