mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
Fix crypttab (#3121)
* Fix error in crypttab doc * Use path type for file argument This permit to make sure that $HOME and '~' are properly expanded, even if in the case of crypttab, this might not make a lot of sense
This commit is contained in:
parent
3c06e2585a
commit
138aaa4ff3
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ options:
|
||||||
default: null
|
default: null
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Encryption password, the path to a file containing the pasword, or
|
- Encryption password, the path to a file containing the password, or
|
||||||
'none' or '-' if the password should be entered at boot.
|
'none' or '-' if the password should be entered at boot.
|
||||||
required: false
|
required: false
|
||||||
default: "none"
|
default: "none"
|
||||||
|
@ -92,9 +92,9 @@ def main():
|
||||||
name = dict(required=True),
|
name = dict(required=True),
|
||||||
state = dict(required=True, choices=['present', 'absent', 'opts_present', 'opts_absent']),
|
state = dict(required=True, choices=['present', 'absent', 'opts_present', 'opts_absent']),
|
||||||
backing_device = dict(default=None),
|
backing_device = dict(default=None),
|
||||||
password = dict(default=None),
|
password = dict(default=None, type='path'),
|
||||||
opts = dict(default=None),
|
opts = dict(default=None),
|
||||||
path = dict(default='/etc/crypttab')
|
path = dict(default='/etc/crypttab', type='path')
|
||||||
),
|
),
|
||||||
supports_check_mode = True
|
supports_check_mode = True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue