summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-02-19 16:43:20 -0500
committerBrian Coca <brian.coca+git@gmail.com>2015-02-20 09:57:39 -0500
commit6e654f2442d8ad7fc707677d534cc012ba7c8f15 (patch)
treef2eae32bea9464b302b75fa34d50212e54c759db /files
parent13cdadcc4d213252e6f4374305c15c9838d73df5 (diff)
downloadansible-modules-core-6e654f2442d8ad7fc707677d534cc012ba7c8f15.tar.gz
fixed issues with stats return docs as per feedback
Diffstat (limited to 'files')
-rw-r--r--files/stat.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/files/stat.py b/files/stat.py
index a98e752c..49d5f166 100644
--- a/files/stat.py
+++ b/files/stat.py
@@ -82,7 +82,7 @@ stat:
sample: True
path:
description: The full path of the file/object to get the facts of
- returned: success
+ returned: success and if path exists
type: boolean
sample: '/path/to/file'
mode:
@@ -160,7 +160,7 @@ stat:
returned: success, path exists and user can read stats
type: float
sample: 1424348972.575
- mtime: st.st_mtime,
+ mtime:
description: Time of last modification
returned: success, path exists and user can read stats
type: float
@@ -215,6 +215,16 @@ stat:
returned: success, path exists and user can read stats
type: boolean
sample: True
+ isuid:
+ description: Tells you if the invoking user's id matches the owner's id
+ returned: success, path exists and user can read stats
+ type: boolean
+ sample: False
+ isrid:
+ description: Tells you if the invoking user's group id matches the owner's group id
+ returned: success, path exists and user can read stats
+ type: boolean
+ sample: False
lnk_source:
description: Original path
returned: success, path exists and user can read stats and the path is a symbolic link
@@ -236,7 +246,7 @@ stat:
type: string
sample: httpd
gr_name:
- description:
+ description: Group name of owner
returned: success, path exists and user can read stats and installed python supports it
type: string
sample: www-data