-
Notifications
You must be signed in to change notification settings - Fork 173
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
local facts that return false are missing #430
Comments
I believe this to be the culprit ansible.windows/plugins/modules/setup.ps1 Line 779 in 43cf617
|
I'll give this a go and see if I can raise my first PR for this project. |
jborean93
pushed a commit
that referenced
this issue
Nov 2, 2022
This was referenced Nov 2, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
If a local fact file (.ps1) returns $false, then the fact is missing from ansible_facts
ISSUE TYPE
COMPONENT NAME
setup.ps1
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows Server 2016
Windows Server 2022
<Probably Server 2019, but not tested>
STEPS TO REPRODUCE
false_fact.ps1 (contents are simply $false)
true_fact.ps1 (contents are simply $true)
ansible winserver2022 -m setup -a "fact_path=C:/facts.d/"
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: