From 3ad602bfa6a13f9f1d8718f86a04e7af314caf23 Mon Sep 17 00:00:00 2001 From: Alexander Kapshuna Date: Wed, 9 Oct 2019 18:24:59 +0300 Subject: [PATCH] Add aliases to path parameter of stat module (#61270) --- lib/ansible/modules/files/stat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index 14ff90cb909..a4525ae3e98 100644 --- a/lib/ansible/modules/files/stat.py +++ b/lib/ansible/modules/files/stat.py @@ -24,6 +24,7 @@ options: - The full path of the file/object to get the facts of. type: path required: true + aliases: [ dest, name ] follow: description: - Whether to follow symlinks. @@ -431,7 +432,7 @@ def format_output(module, path, st): def main(): module = AnsibleModule( argument_spec=dict( - path=dict(type='path', required=True), + path=dict(type='path', required=True, aliases=['dest', 'name']), follow=dict(type='bool', default=False), get_md5=dict(type='bool', default=False), get_checksum=dict(type='bool', default=True),