--- - name: "Cron | Create cron job for database optimization" ansible.builtin.cron: name: 'Ansible: Database optimization' job: 'chronic mysqlcheck --all-databases --optimize' special_time: weekly