summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kapshuna <kapsh@kap.sh>2019-10-09 18:24:59 +0300
committeransibot <ansibot@users.noreply.github.com>2019-10-09 11:24:59 -0400
commit3ad602bfa6a13f9f1d8718f86a04e7af314caf23 (patch)
tree2accad4d7bd143ca995a2ba1a9a30ba3d936afe3
parentd4ad541eee90e951b47165120cd3edc932177c57 (diff)
downloadansible-3ad602bfa6a13f9f1d8718f86a04e7af314caf23.tar.gz
Add aliases to path parameter of stat module (#61270)
-rw-r--r--lib/ansible/modules/files/stat.py3
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),