Skip to content

Register PSRepository

Go to Automation

View in GitLab

Description

This playbook registers / unregisters a PowerShell repository on a target host. When registering, it sets the repository's installation and publish locations and copies the repository configuration to all user profiles and the default profile if the repository registration changes.

Credentials

  • sys_ansible_windows

Input

Variable Description
target Target host for the repository registration
ps_repo_name Name of the PowerShell repository
ps_repo_uri URI of the PowerShell repository
ps_installation_policy Installation policy for the repository (trusted/untrusted)
state Desired state of the repository (present/absent)

Output

None

Dependencies