Merge branch 'devel' of https://github.com/mtpereira/ansible into mtpereira-devel
This commit is contained in:
commit
5cb6b24546
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,7 @@ DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: gem
|
module: gem
|
||||||
short_description: Manage Ruby gems
|
short_description: Manage Ruby gems
|
||||||
description:
|
description:
|
||||||
- Manage installation and uninstallation of Ruby gems.
|
- Manage installation and uninstallation of Ruby gems.
|
||||||
version_added: "1.1"
|
version_added: "1.1"
|
||||||
options:
|
options:
|
||||||
|
@ -32,7 +32,7 @@ options:
|
||||||
- The name of the gem to be managed.
|
- The name of the gem to be managed.
|
||||||
required: true
|
required: true
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- The desired state of the gem. C(latest) ensures that the latest version is installed.
|
- The desired state of the gem. C(latest) ensures that the latest version is installed.
|
||||||
required: true
|
required: true
|
||||||
choices: [present, absent, latest]
|
choices: [present, absent, latest]
|
||||||
|
@ -143,6 +143,7 @@ def uninstall(module):
|
||||||
cmd.extend([ '--version', module.params['version'] ])
|
cmd.extend([ '--version', module.params['version'] ])
|
||||||
else:
|
else:
|
||||||
cmd.append('--all')
|
cmd.append('--all')
|
||||||
|
cmd.append('--executable')
|
||||||
cmd.append(module.params['name'])
|
cmd.append(module.params['name'])
|
||||||
module.run_command(cmd, check_rc=True)
|
module.run_command(cmd, check_rc=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue