minor doc uptates
This commit is contained in:
parent
8a826d61e9
commit
f9a42f60c5
1 changed files with 7 additions and 6 deletions
|
@ -38,8 +38,8 @@ options:
|
||||||
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- state of the package
|
- state of the package, you can use "installed" as an alias for C(present) and removed as one for c(absent).
|
||||||
choices: [ 'present', 'absent', 'installed', 'removed', 'latest' ]
|
choices: [ 'present', 'absent', 'latest' ]
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@ options:
|
||||||
|
|
||||||
author: Kim Nørgaard (@KimNorgaard)
|
author: Kim Nørgaard (@KimNorgaard)
|
||||||
requirements: [ "Slackware" >= 12.2 ]
|
requirements: [ "Slackware" >= 12.2 ]
|
||||||
notes: []
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -61,6 +60,10 @@ EXAMPLES = '''
|
||||||
|
|
||||||
# Remove packages foo and bar
|
# Remove packages foo and bar
|
||||||
- slackpkg: name=foo,bar state=absent
|
- 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():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default="installed", choices=['installed', 'removed',
|
state=dict(default="installed", choices=['installed', 'removed', 'absent', 'present', 'latest']),
|
||||||
'absent', 'present',
|
|
||||||
'latest']),
|
|
||||||
name=dict(aliases=["pkg"], required=True, type='list'),
|
name=dict(aliases=["pkg"], required=True, type='list'),
|
||||||
update_cache=dict(default=False, aliases=["update-cache"],
|
update_cache=dict(default=False, aliases=["update-cache"],
|
||||||
type='bool'),
|
type='bool'),
|
||||||
|
|
Loading…
Reference in a new issue