Commit caa825b6 by Michael DeHaan

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

parent 74cde56b
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment