mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
s[e-n]*: normalize docs (#9352)
* s[e-n]*: normalize docs * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * quote line with : and remove extraneous notes * Update plugins/modules/slack.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/seport.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
bef82e28a2
commit
9fc3092bb3
20 changed files with 627 additions and 689 deletions
|
@ -15,49 +15,47 @@ from __future__ import absolute_import, division, print_function
|
|||
__metaclass__ = type
|
||||
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: slackpkg
|
||||
short_description: Package manager for Slackware >= 12.2
|
||||
description:
|
||||
- Manage binary packages for Slackware using 'slackpkg' which
|
||||
is available in versions after 12.2.
|
||||
- Manage binary packages for Slackware using C(slackpkg) which is available in versions after 12.2.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
check_mode:
|
||||
support: full
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
- name of package to install/remove
|
||||
required: true
|
||||
type: list
|
||||
elements: str
|
||||
aliases: [pkg]
|
||||
name:
|
||||
description:
|
||||
- Name of package to install/remove.
|
||||
required: true
|
||||
type: list
|
||||
elements: str
|
||||
aliases: [pkg]
|
||||
|
||||
state:
|
||||
description:
|
||||
- State of the package, you can use V(installed) as an alias for V(present) and V(removed) as one for V(absent).
|
||||
choices: [ 'present', 'absent', 'latest', 'installed', 'removed' ]
|
||||
required: false
|
||||
default: present
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
- State of the package, you can use V(installed) as an alias for V(present) and V(removed) as one for V(absent).
|
||||
choices: ['present', 'absent', 'latest', 'installed', 'removed']
|
||||
required: false
|
||||
default: present
|
||||
type: str
|
||||
|
||||
update_cache:
|
||||
description:
|
||||
- update the package database first
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
update_cache:
|
||||
description:
|
||||
- Update the package database first.
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
|
||||
author: Kim Nørgaard (@KimNorgaard)
|
||||
requirements: [ "Slackware >= 12.2" ]
|
||||
'''
|
||||
requirements: ["Slackware >= 12.2"]
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Install package foo
|
||||
community.general.slackpkg:
|
||||
name: foo
|
||||
|
@ -72,7 +70,7 @@ EXAMPLES = '''
|
|||
community.general.slackpkg:
|
||||
name: foo
|
||||
state: latest
|
||||
'''
|
||||
"""
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue