diff options
author | Alexander Kapshuna <kapsh@kap.sh> | 2019-10-09 18:24:59 +0300 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-10-09 11:24:59 -0400 |
commit | 3ad602bfa6a13f9f1d8718f86a04e7af314caf23 (patch) | |
tree | 2accad4d7bd143ca995a2ba1a9a30ba3d936afe3 | |
parent | d4ad541eee90e951b47165120cd3edc932177c57 (diff) | |
download | ansible-3ad602bfa6a13f9f1d8718f86a04e7af314caf23.tar.gz |
Add aliases to path parameter of stat module (#61270)
-rw-r--r-- | lib/ansible/modules/files/stat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index 14ff90cb90..a4525ae3e9 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), |