mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Merge branch 'copy-diff-take2' of git://github.com/stoned/ansible into better_diff
Conflicts: library/file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user