community.windows.win_psrepository_info – Gather information about PSRepositories¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_psrepository_info
.
Requirements¶
The below requirements are needed on the host that executes this module.
PowerShellGet
module
Parameters¶
See Also¶
See also
- community.windows.win_psrepository
The official documentation on the community.windows.win_psrepository module.
Examples¶
- name: Get info for a single repository
community.windows.win_psrepository_info:
name: PSGallery
register: repo_info
- name: Find all repositories that start with 'MyCompany'
community.windows.win_psrepository_info:
name: MyCompany*
- name: Get info for all repositories
community.windows.win_psrepository_info:
register: repo_info
- name: Remove all repositories that don't have a publish_location set
community.windows.win_psrepository:
name: "{{ item }}"
state: absent
loop: "{{ repo_info.repositories | rejectattr('publish_location', 'none') | list }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Brian Scholer (@briantist)