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
pull/18777/head
Michael Scherer 8 years ago committed by Matt Clay
parent 3c06e2585a
commit 138aaa4ff3

@ -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…
Cancel
Save