mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Merge branch 'copy-diff-take2' of git://github.com/stoned/ansible into better_diff
Conflicts: library/file
This commit is contained in:
commit
1366c663eb
8 changed files with 101 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue