You've already forked community.general
mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-16 03:21:53 +03:00
Gem: Support force flag when uninstalling (#5822)
* Gem: Support force flag when uninstalling * Improve docs' syntax * Add changelog fragment
This commit is contained in:
@ -105,7 +105,7 @@ options:
|
||||
required: false
|
||||
force:
|
||||
description:
|
||||
- Force gem to install, bypassing dependency checks.
|
||||
- Force gem to (un-)install, bypassing dependency checks.
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
@ -235,6 +235,8 @@ def uninstall(module):
|
||||
else:
|
||||
cmd.append('--all')
|
||||
cmd.append('--executable')
|
||||
if module.params['force']:
|
||||
cmd.append('--force')
|
||||
cmd.append(module.params['name'])
|
||||
module.run_command(cmd, environ_update=environ, check_rc=True)
|
||||
|
||||
|
Reference in New Issue
Block a user