mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
[pi ... prof]*: normalize docs (#9371)
* [pi ... prof]*: normalize docs * Update plugins/modules/pkg5_publisher.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
23d97fa4b0
commit
13e2097f37
23 changed files with 702 additions and 766 deletions
|
@ -12,43 +12,42 @@ from __future__ import absolute_import, division, print_function
|
|||
__metaclass__ = type
|
||||
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: portinstall
|
||||
short_description: Installing packages from FreeBSD's ports system
|
||||
description:
|
||||
- Manage packages for FreeBSD using 'portinstall'.
|
||||
- Manage packages for FreeBSD using C(portinstall).
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
check_mode:
|
||||
support: none
|
||||
diff_mode:
|
||||
support: none
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
- name of package to install/remove
|
||||
aliases: [pkg]
|
||||
required: true
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
- state of the package
|
||||
choices: [ 'present', 'absent' ]
|
||||
required: false
|
||||
default: present
|
||||
type: str
|
||||
use_packages:
|
||||
description:
|
||||
- use packages instead of ports whenever available
|
||||
type: bool
|
||||
required: false
|
||||
default: true
|
||||
name:
|
||||
description:
|
||||
- Name of package to install/remove.
|
||||
aliases: [pkg]
|
||||
required: true
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
- State of the package.
|
||||
choices: ['present', 'absent']
|
||||
required: false
|
||||
default: present
|
||||
type: str
|
||||
use_packages:
|
||||
description:
|
||||
- Use packages instead of ports whenever available.
|
||||
type: bool
|
||||
required: false
|
||||
default: true
|
||||
author: "berenddeboer (@berenddeboer)"
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Install package foo
|
||||
community.general.portinstall:
|
||||
name: foo
|
||||
|
@ -63,7 +62,7 @@ EXAMPLES = '''
|
|||
community.general.portinstall:
|
||||
name: foo,bar
|
||||
state: absent
|
||||
'''
|
||||
"""
|
||||
|
||||
import re
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue