Skip to content

Instantly share code, notes, and snippets.

@bcoca
Created April 13, 2016 20:29
Show Gist options
  • Save bcoca/8c9f018ba3ca6c80469cb5b29f2f236e to your computer and use it in GitHub Desktop.
Save bcoca/8c9f018ba3ca6c80469cb5b29f2f236e to your computer and use it in GitHub Desktop.
 ansible -m stat -a 'path=/home/bcoca/work/ansible/tmp' localhost
localhost | SUCCESS => {
"changed": false,
"stat": {
"atime": 1460579289.7836845,
"ctime": 1460579289.7836845,
"dev": 2083,
"exists": true,
"gid": 1000,
"gr_name": "bcoca",
"inode": 6684978,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": true,
"isreg": false,
"issock": false,
"isuid": false,
"lnk_source": "/var/tmp",
"mode": "0777",
"mtime": 1460579289.7836845,
"nlink": 1,
"path": "/home/bcoca/work/ansible/tmp",
"pw_name": "bcoca",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 8,
"uid": 1000,
"wgrp": true,
"woth": true,
"wusr": true,
"xgrp": true,
"xoth": true,
"xusr": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment