From 90091b1277d580a60196fa1d24f5d9dbb4c9bccd Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Mon, 29 Sep 2014 17:59:23 +0300 Subject: [PATCH] files.stat: Expose path in returned result This is needed to apply subsequent operation on tested path --- lib/ansible/modules/files/stat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index 8c717a395c..2a9189e532 100644 --- a/lib/ansible/modules/files/stat.py +++ b/lib/ansible/modules/files/stat.py @@ -99,6 +99,7 @@ def main(): # back to ansible d = { 'exists' : True, + 'path' : path, 'mode' : "%04o" % S_IMODE(mode), 'isdir' : S_ISDIR(mode), 'ischr' : S_ISCHR(mode),