Configure restart control

This commit is contained in:
phil 2023-11-19 13:38:14 +01:00
parent 5974bbdc45
commit 473ea5ceec
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,8 @@
# Ansible manages
[Unti]
StartLimitIntervalSec=6
StartLimitBurst=10
[Service]
Restart=always

View file

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