I'm fairly new to administrating servers with configuration managers such as Ansible. I plan on running playbooks automatically on a schedule (via something like Ansible Semaphore, or even just Cron) with high frequency (like every 30 minutes or so).
I'm hoping to achieve two goals with this approach:
- Enforce configuration (so I can be confident that no deviation from the expected configuration exists for long);
- Detect any such deviation and investigate it (since Ansible reports changes for each task).
Is this a normal and/or recommended approach (I wasn't able to find authoritative sources on the best practices in this regard)?
If not, why, — and what would be a better way to achieve my goals?
Thank you!