From f9a42f60c506e63cab8df874d90252d29acd2707 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 3 Aug 2015 16:34:45 -0400 Subject: [PATCH] minor doc uptates --- lib/ansible/modules/extras/packaging/os/slackpkg.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/slackpkg.py b/lib/ansible/modules/extras/packaging/os/slackpkg.py index 577b46d705b..fe7dacda9d2 100644 --- a/lib/ansible/modules/extras/packaging/os/slackpkg.py +++ b/lib/ansible/modules/extras/packaging/os/slackpkg.py @@ -38,8 +38,8 @@ options: state: description: - - state of the package - choices: [ 'present', 'absent', 'installed', 'removed', 'latest' ] + - state of the package, you can use "installed" as an alias for C(present) and removed as one for c(absent). + choices: [ 'present', 'absent', 'latest' ] required: false default: present @@ -52,7 +52,6 @@ options: author: Kim Nørgaard (@KimNorgaard) requirements: [ "Slackware" >= 12.2 ] -notes: [] ''' EXAMPLES = ''' @@ -61,6 +60,10 @@ EXAMPLES = ''' # Remove packages foo and bar - slackpkg: name=foo,bar state=absent + +# Make sure that it is the most updated package +- slackpkg: name=foo state=latest + ''' @@ -165,9 +168,7 @@ def update_cache(module, slackpkg_path): def main(): module = AnsibleModule( argument_spec=dict( - state=dict(default="installed", choices=['installed', 'removed', - 'absent', 'present', - 'latest']), + state=dict(default="installed", choices=['installed', 'removed', 'absent', 'present', 'latest']), name=dict(aliases=["pkg"], required=True, type='list'), update_cache=dict(default=False, aliases=["update-cache"], type='bool'),