mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Do not copy file if running on check mode
This commit is contained in:
parent
0c7ec1e860
commit
259c4b31fb
1 changed files with 28 additions and 27 deletions
|
@ -301,6 +301,7 @@ def main():
|
|||
|
||||
backup_file = None
|
||||
if checksum_src != checksum_dest or os.path.islink(dest):
|
||||
if not module.check_mode:
|
||||
try:
|
||||
if backup:
|
||||
if os.path.exists(dest):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue