changed to use ansible standard 'name' instead of 'package'

This commit is contained in:
Brian Coca 2014-12-06 19:04:19 -05:00
parent 19e688b017
commit b5a0d10925
2 changed files with 8 additions and 8 deletions

View file

@ -39,13 +39,13 @@ $params = Parse-Args $args;
$result = New-Object PSObject; $result = New-Object PSObject;
Set-Attr $result "changed" $false; Set-Attr $result "changed" $false;
If ($params.package) If ($params.name)
{ {
$package = $params.package $package = $params.name
} }
Else Else
{ {
Fail-Json $result "missing required argument: package" Fail-Json $result "missing required argument: name"
} }
if(($params.logPath).length -gt 0) if(($params.logPath).length -gt 0)

View file

@ -29,7 +29,7 @@ short_description: Installs packages using chocolatey
description: description:
- Installs packages using Chocolatey (http://chocolatey.org/). If Chocolatey is missing from the system, the module will install it. List of packages can be found at http://chocolatey.org/packages - Installs packages using Chocolatey (http://chocolatey.org/). If Chocolatey is missing from the system, the module will install it. List of packages can be found at http://chocolatey.org/packages
options: options:
package: name:
description: description:
- Name of the package to be installed - Name of the package to be installed
required: true required: true
@ -97,22 +97,22 @@ author: Trond Hindenes, Peter Mounce
EXAMPLES = ''' EXAMPLES = '''
# Install git # Install git
win_chocolatey: win_chocolatey:
package: git name: git
# Install notepadplusplus version 6.6 # Install notepadplusplus version 6.6
win_chocolatey: win_chocolatey:
package: notepadplusplus.install name: notepadplusplus.install
version: 6.6 version: 6.6
# Uninstall git # Uninstall git
win_chocolatey: win_chocolatey:
package: git name: git
state: absent state: absent
# Install Application Request Routing v3 from webpi # Install Application Request Routing v3 from webpi
# Logically, this requires that you install IIS first (see win_feature) # Logically, this requires that you install IIS first (see win_feature)
# To find a list of packages available via webpi source, `choco list -source webpi` # To find a list of packages available via webpi source, `choco list -source webpi`
win_chocolatey: win_chocolatey:
package: ARRv3 name: ARRv3
source: webpi source: webpi
''' '''