I noticed that the following task always results in a ‘changed’ message from my plays:
- name: remove cron
cron: cron_file=mycronfile state=absent
This appears to be due to this line in the cron module:
https://github.com/ansible/ansible/blob/devel/library/system/cron#L468
This seems odd to me–why not only report changed if a file was actually unlinked? If this is intentional, could someone explain the reason? Just want to understand why the modules are written the way they are.