mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
a875b63703
commit
c364e4c77b
1 changed files with 1 additions and 4 deletions
|
@ -333,12 +333,9 @@ def main():
|
|||
os.unlink(backupfile)
|
||||
module.exit_json(changed=changed,cron_file=cron_file,state=state)
|
||||
|
||||
if (rc != 0):
|
||||
module.fail_json(msg=err)
|
||||
|
||||
if changed:
|
||||
# If the file is empty - remove it
|
||||
if rm:
|
||||
if rm and cron_file:
|
||||
remove_job_file(cron_file)
|
||||
else:
|
||||
if backup:
|
||||
|
|
Loading…
Reference in a new issue