Skip to content

Update-GitlabPSModuleAnsible

SYNOPSIS

Deploy and update a PowerShell module using Ansible workflows.

SYNTAX

Update-GitlabPSModuleAnsible [[-psmodule] <String>] [[-psrepo] <String>]

DESCRIPTION

This function automates the deployment and update of a PowerShell module to specified servers using Ansible workflows. It validates the module manifest, retrieves deployment targets from GitLab environment variables, and triggers an Ansible workflow job to synchronize the module. The function supports both production and QA deployments.

EXAMPLES

EXAMPLE 1

Update-GitLabPSModuleAnsible -psmodule "MyModule" -psrepo "PSGallery_Local"

Deploys the "MyModule" PowerShell module to the servers specified in the GitLab environment variables.

EXAMPLE 2

Update-GitLabPSModuleAnsible -psmodule "MyModule"

Deploys the "MyModule" PowerShell module to the default repository "PSGallery_Local".

PARAMETERS

-psmodule

The name of the PowerShell module to deploy.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-psrepo

The name of the NuGet repository where the module is stored. Default is "PSGallery_Local".

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: PSGallery_Local
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES