How do you automate log imports, archiving, and report cleanup in self-hosted Matomo?

We’re running Matomo self-hosted across multiple environments, and the routine jobs (log imports, archive processing, custom dimension cleanups) are starting to pile up.

Wondering how others are automating this — do you stick with cron + bash scripts, or do you use tools like Ansible, Jenkins, or something more orchestration-friendly?

Would love to hear your stack and what’s working well in production.