mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5556 from inetfuture/npm
Fix npm documentation typo.
This commit is contained in:
commit
3989382616
1 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of a node.js library to install
|
- The name of a node.js library to install
|
||||||
requires: false
|
required: false
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
- The base path where to install the node.js libraries
|
- The base path where to install the node.js libraries
|
||||||
|
@ -101,7 +101,7 @@ class Npm(object):
|
||||||
self.version = kwargs['version']
|
self.version = kwargs['version']
|
||||||
self.path = kwargs['path']
|
self.path = kwargs['path']
|
||||||
self.production = kwargs['production']
|
self.production = kwargs['production']
|
||||||
|
|
||||||
if kwargs['executable']:
|
if kwargs['executable']:
|
||||||
self.executable = kwargs['executable']
|
self.executable = kwargs['executable']
|
||||||
else:
|
else:
|
||||||
|
@ -119,7 +119,7 @@ class Npm(object):
|
||||||
if self.glbl:
|
if self.glbl:
|
||||||
cmd.append('--global')
|
cmd.append('--global')
|
||||||
if self.production:
|
if self.production:
|
||||||
cmd.append('--production')
|
cmd.append('--production')
|
||||||
if self.name:
|
if self.name:
|
||||||
cmd.append(self.name_version)
|
cmd.append(self.name_version)
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ def main():
|
||||||
executable=dict(default=None),
|
executable=dict(default=None),
|
||||||
state=dict(default='present', choices=['present', 'absent', 'latest'])
|
state=dict(default='present', choices=['present', 'absent', 'latest'])
|
||||||
)
|
)
|
||||||
arg_spec['global']=dict(default='no', type='bool')
|
arg_spec['global'] = dict(default='no', type='bool')
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=arg_spec,
|
argument_spec=arg_spec,
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
|
|
Loading…
Reference in a new issue