mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Implement --diff for the copy module.
This commit is contained in:
parent
f6e3583b9b
commit
10e9f1fc1e
8 changed files with 91 additions and 27 deletions
|
@ -454,6 +454,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