On a brand-new system that has not yet configured aide, if applying the aide role with both aide_init and aide_cron_check set to true, the following events occur:
- The aide database is initialized, recording the state of
/etc/crontab
- The
/etc/crontab file is modified
This causes the role to leave the system in a state where aide --check would flag the modification to /etc/crontab.
Consider moving the tasks to edit the /etc/crontab file before any tasks that create or update the aide database.
A workaround would be to run the aide role once with only aide_cron_check set to true, then run it again with both aide_init and aide_cron_check set to true, but this is not ideal.