ansible-collections / ansible-collections/Datadog
[BUG] Remote update in progress for Windows is not idempotent
- Dominant language
- Jinja
- Stars
- 6
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
**Describe what happened:**
When using the `datadog.dd.role` on a Windows remote host, the `Check if remote update is in progress` task always reports as `changed` which causes idempotence checks (like those in Molecule) to fail.
**Describe what you expected:**
The task should not report as `changed`. Ideally, it should use `changed_when: false`, but a variable to override this behavior would also work.
**Steps to reproduce the issue:**
- Execute `datadog.dd.role` role twice on a Windows remote host.
- Observe on the 2nd execution that all tasks are unchanged except for one.
This was added as part of this commit in v6.4.0
https://github.com/ansible-collections/Datadog/commit/ea320e0464abdc3ed1b9795d5545c66299103a85
Contributor guide
Research direction
Locate the datadog.dd.role task named `Check if remote update is in progress`; begin by running the role twice on a Windows remote host as described. Confirm the second run reports that task as changed, then verify the task no longer reports a change while the other tasks remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100