Rename option to 'recurse' to make it consistent. Add version_added to docs.

pull/3659/merge
Michael DeHaan 11 years ago
parent 74cde56b60
commit caa825b618

@ -45,13 +45,14 @@ options:
default: "no"
choices: [ "yes", "no" ]
recursive:
recurse:
description:
- remove all not explicitly installed dependencies not required
by other packages of the package to remove
required: false
default: "no"
choices: [ "yes", "no" ]
version_added: "1.3"
author: Afterburn
notes: []
@ -68,7 +69,7 @@ EXAMPLES = '''
- pacman: name=foo,bar state=absent
# Recursively remove package baz
- pacman: name=baz state=absent recursive=yes
- pacman: name=baz state=absent recurse=yes
# Update the package database (pacman -Syy) and install bar (bar will be the updated if a newer version exists)
- pacman: name=bar, state=installed, update_cache=yes
@ -103,7 +104,7 @@ def update_package_db(module):
def remove_packages(module, packages):
if module.params["recursive"]:
if module.params["recurse"]:
args = "Rs"
else:
args = "R"
@ -156,7 +157,7 @@ def main():
argument_spec = dict(
state = dict(default="installed", choices=["installed","absent"]),
update_cache = dict(default="no", aliases=["update-cache"], type='bool'),
recursive = dict(default="no", type='bool'),
recurse = dict(default="no", type='bool'),
name = dict(aliases=["pkg"], required=True)))

Loading…
Cancel
Save