external help file | Module Name | online version | schema |
---|---|---|---|
Jagabata.psm.dll-Help.xml |
Jagabata.psm |
2.0.0 |
Create config file that should be used by this module.
New-AnsibleApiConfig [-Uri] <Uri> [-SaveAs <FileInfo>] [-Lang <CultureInfo>] [<CommonParameters>]
Create a configuration file which is stored AWX/AnsibleTower URL, OAuth2 AccessToken and etc... This will be the first thing you should do when using this module.
PS C:\> New-AnsibleApiConfig -Uri http://localhost:8013/
_ _ _
| | __ _ __ _ __ _| |__ __ _| |_ __ _ _ __ ___ _ __ ___
_ | |/ _` |/ _` |/ _` | '_ \ / _` | __/ _` | | '_ \/ __| '_ ` _ \
| |_| | (_| | (_| | (_| | |_) | (_| | || (_| |_| |_) \__ \ | | | | |
\___/ \__,_|\__, |\__,_|_.__/ \__,_|\__\__,_(_) .__/|___/_| |_| |_|
|___/ |_|
Please enter the your Personal Access Token(PAT)
Personal Token: ******************************
Try to retrieve the user information from: http://localhost:8013/
Success: ******(*****@*****.***)
Save config to: C:\Users\*****\.ansible_api_config.json
Sccess 🎉
Origin LastSaved File
------ --------- ----
http://localhost:8013/ 2024/08/06 7:42:02 C:\Users\*****\.ansible_api_config.json
Create new configuration file.
Language information.
Set in the HTTP request header (Accept-Language
) primary, part of the API response will be localized.
For example:
-Lang ja-JP
-Lang $Host.CurrentCulture
Type: CultureInfo
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Configuration file path
Type: FileInfo
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
AWX/AnsibleTower URL
Type: Uri
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Newly created configuration object.