mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
validate-modules: Fix all system modules (#52384)
This PR includes validate-modules fixes for all system modules. Except a few that are deliberately implemented like this.
This commit is contained in:
parent
c9eb186a94
commit
8c74df5e67
26 changed files with 568 additions and 495 deletions
|
@ -11,7 +11,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
'status': ['preview'],
|
||||
'supported_by': 'community'}
|
||||
|
||||
DOCUMENTATION = '''
|
||||
DOCUMENTATION = r'''
|
||||
---
|
||||
module: crypttab
|
||||
short_description: Encrypted Linux block devices
|
||||
|
@ -24,38 +24,44 @@ options:
|
|||
- Name of the encrypted block device as it appears in the C(/etc/crypttab) file, or
|
||||
optionally prefixed with C(/dev/mapper/), as it appears in the filesystem. I(/dev/mapper/)
|
||||
will be stripped from I(name).
|
||||
type: str
|
||||
required: yes
|
||||
state:
|
||||
description:
|
||||
- Use I(present) to add a line to C(/etc/crypttab) or update it's definition
|
||||
if already present. Use I(absent) to remove a line with matching I(name).
|
||||
Use I(opts_present) to add options to those already present; options with
|
||||
different values will be updated. Use I(opts_absent) to remove options from
|
||||
the existing set.
|
||||
- Use I(present) to add a line to C(/etc/crypttab) or update its definition
|
||||
if already present.
|
||||
- Use I(absent) to remove a line with matching I(name).
|
||||
- Use I(opts_present) to add options to those already present; options with
|
||||
different values will be updated.
|
||||
- Use I(opts_absent) to remove options from the existing set.
|
||||
type: str
|
||||
required: yes
|
||||
choices: [ absent, opts_absent, opts_present, present ]
|
||||
backing_device:
|
||||
description:
|
||||
- Path to the underlying block device or file, or the UUID of a block-device
|
||||
prefixed with I(UUID=).
|
||||
type: str
|
||||
password:
|
||||
description:
|
||||
- Encryption password, the path to a file containing the password, or
|
||||
C(none) or C(-) if the password should be entered at boot.
|
||||
default: 'none'
|
||||
C(-) or unset if the password should be entered at boot.
|
||||
type: path
|
||||
opts:
|
||||
description:
|
||||
- A comma-delimited list of options. See C(crypttab(5) ) for details.
|
||||
type: str
|
||||
path:
|
||||
description:
|
||||
- Path to file to use instead of C(/etc/crypttab). This might be useful
|
||||
in a chroot environment.
|
||||
- Path to file to use instead of C(/etc/crypttab).
|
||||
- This might be useful in a chroot environment.
|
||||
type: path
|
||||
default: /etc/crypttab
|
||||
author:
|
||||
- Steve (@groks)
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r'''
|
||||
- name: Set the options explicitly a device which must already exist
|
||||
crypttab:
|
||||
name: luks-home
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue