summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-08-03 14:27:11 -0400
committerMichael DeHaan <michael@ansibleworks.com>2013-08-03 14:27:11 -0400
commitcaa825b618f59628b2c83052244cb1434eb57a3a (patch)
tree1bcf8ac981d789a0dffe4b3a31aa3d0ee5b61f20 /library
parent74cde56b604816d16a75912ff04052161c2305f2 (diff)
downloadansible-caa825b618f59628b2c83052244cb1434eb57a3a.tar.gz
Rename option to 'recurse' to make it consistent. Add version_added to docs.
Diffstat (limited to 'library')
-rw-r--r--library/packaging/pacman9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/packaging/pacman b/library/packaging/pacman
index 653d1a3b61..cb5ae4aa42 100644
--- a/library/packaging/pacman
+++ b/library/packaging/pacman
@@ -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)))