mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix: absent state removing whole cron.d file instead of specific job
This commit is contained in:
parent
9a7765daf7
commit
a43aaaecd0
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ def main():
|
|||
(backuph, backup_file) = tempfile.mkstemp(prefix='crontab')
|
||||
crontab.write(backup_file)
|
||||
|
||||
if crontab.cron_file and not do_install:
|
||||
if crontab.cron_file and not name and not do_install:
|
||||
changed = crontab.remove_job_file()
|
||||
module.exit_json(changed=changed,cron_file=cron_file,state=state)
|
||||
|
||||
|
|
Loading…
Reference in a new issue