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_update: Add the ability to exclude certain category_names #570

Open
foss4ever opened this issue Nov 24, 2023 · 0 comments
Open

win_update: Add the ability to exclude certain category_names #570

foss4ever opened this issue Nov 24, 2023 · 0 comments

Comments

@foss4ever
Copy link

SUMMARY

win_update - add the option to explicitly exclude certain category_names, while including all other categories.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

ansible.windows.win_updates

ADDITIONAL INFORMATION

It would allow me to ignore Windows Defender definition updates when scanning for updates to install.

---
- hosts: "{{ var_hosts }}"
  tasks:
    - name: Search available updates
      ansible.windows.win_updates:
        state: searched
        skip_optional: true
        # example option for excluding certain update categories:
        exclude_categories: DefinitionUpdates
      register: result

    - name: Output search result
      ansible.builtin.debug:
        var: result
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