Merge branch 'copy-diff-take2' of git://github.com/stoned/ansible into better_diff

Conflicts:
	library/file
This commit is contained in:
Michael DeHaan 2013-02-26 20:51:32 -05:00
commit 1366c663eb
8 changed files with 101 additions and 29 deletions

View file

@ -458,6 +458,7 @@ class AnsibleModule(object):
kwargs['state'] = 'file'
if HAVE_SELINUX and self.selinux_enabled():
kwargs['secontext'] = ':'.join(self.selinux_context(path))
kwargs['size'] = st[stat.ST_SIZE]
else:
kwargs['state'] = 'absent'
return kwargs