Skip to content

Instantly share code, notes, and snippets.

@kimegede
Created May 23, 2017 09:36
Show Gist options
  • Save kimegede/c7a915a8e275223757441dc2f0e03b73 to your computer and use it in GitHub Desktop.
Save kimegede/c7a915a8e275223757441dc2f0e03b73 to your computer and use it in GitHub Desktop.
Ansible stats out
- stat:
path: "/var/www/"
register: wwwstats
- name: debugging
debug:
var: wwwstats
ok: [127.0.0.1] => {
"changed": false,
"wwwstats": {
"changed": false,
"stat": {
"atime": 1495530997.6706622,
"attr_flags": "e",
"attributes": [
"extents"
],
"block_size": 4096,
"blocks": 8,
"charset": "binary",
"ctime": 1495530996.6106622,
"dev": 2049,
"device_type": 0,
"executable": true,
"exists": true,
"gid": 1000,
"gr_name": "vagrant",
"inode": 1181860,
"isblk": false,
"ischr": false,
"isdir": true,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": false,
"issock": false,
"isuid": false,
"mimetype": "inode/directory",
"mode": "0755",
"mtime": 1495530996.6106622,
"nlink": 3,
"path": "/var/www/",
"pw_name": "vagrant",
"readable": true,
"rgrp": true,
"roth": true,
"rusr": true,
"size": 4096,
"uid": 1000,
"version": "408914525",
"wgrp": false,
"woth": false,
"writeable": 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