Choco Operations¶
Manage choco (Chocolatey) packages (https://chocolatey.org).
Facts used in these operations: choco.ChocoPackages.
choco.install¶
Stateless operation
This operation will always execute commands and is not idempotent.
Install choco (Chocolatey).
choco.install()
choco.packages¶
Add/remove/update choco packages.
choco.packages(packages=None, present=True, latest=False)
- packages: list of packages to ensure
 - present: whether the packages should be installed
 - latest: whether to upgrade packages without a specified version
 
- Versions:
 - Package versions can be pinned like gem: 
<pkg>:<version>. 
Example:
# Note: Assumes that 'choco' is installed and
#       user has Administrator permission.
choco.packages(
    name="Install Notepad++",
    packages=["notepadplusplus"],
)
            pyinfra 2.x