chocolatey.chocolatey.win_chocolatey_facts – Create a facts collection for Chocolatey¶
Note
This plugin is part of the chocolatey.chocolatey collection (version 1.0.2).
To install it use: ansible-galaxy collection install chocolatey.chocolatey
.
To use it in a playbook, specify: chocolatey.chocolatey.win_chocolatey_facts
.
New in version 2.8: of chocolatey.chocolatey
Synopsis¶
This module shows information from Chocolatey, such as installed packages, configuration, feature and sources.
See Also¶
See also
- win_chocolatey
The official documentation on the win_chocolatey module.
- win_chocolatey_config
The official documentation on the win_chocolatey_config module.
- win_chocolatey_feature
The official documentation on the win_chocolatey_feature module.
- win_chocolatey_source
The official documentation on the win_chocolatey_source module.
Examples¶
- name: Gather facts from chocolatey
win_chocolatey_facts:
- name: Displays the Configuration
debug:
var: ansible_chocolatey.config
- name: Displays the Feature
debug:
var: ansible_chocolatey.feature
- name: Displays the Sources
debug:
var: ansible_chocolatey.sources
- name: Displays the Packages
debug:
var: ansible_chocolatey.packages
Returned Facts¶
Facts returned by this module are added/updated in the hostvars
host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.
Authors¶
Simon Bärlocher (@sbaerlocher)
ITIGO AG (@itigoag)