Skip to content
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

win_feature_info change name parameter from str to list #598

Open
Crombell95 opened this issue Jan 8, 2025 · 0 comments
Open

win_feature_info change name parameter from str to list #598

Crombell95 opened this issue Jan 8, 2025 · 0 comments

Comments

@Crombell95
Copy link

Crombell95 commented Jan 8, 2025

SUMMARY

Get-Windowsfeature accepts a string array as input, but the win_feature_info module defines the name parameter type as str. This means that when I want to find multiple features, I either have to use the default wildcard or call the module multiple times. This is a limitation of the module, but is supported by the underlying command.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.windows.win_feature_info

ADDITIONAL INFORMATION
- name: Get installed Windows features
  community.windows.win_feature_info:
    name:
      - Hyper-V
      - IIS
      - AD-Certificate
      - WINS

This will only lookup the mentioned Windows features, without the performance overhead of a wildcard search

One other thing of note, I think the 'exists' output is a bit misleading in case of multiple roles where some are present and some are not (this is already an issue in the current module when using a wildcard). Should this be reimplemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant