copr-be: scan just once a month

It turns out that a drop-in created yet another OnCalendar event;  so we
actually checked disk arrays even more frequently with the drop-in.
Let's override /usr/lib config with /etc (copy-paste with OnCalendar
tweak).
This commit is contained in:
Pavel Raiskup 2023-08-26 15:36:46 +02:00
parent 4bb210adf1
commit 58f5ee58e6

View file

@ -53,18 +53,20 @@
- raid_check
when: datacenter == 'aws'
block:
- name: create the drop-in directory for raid-check.timer
file:
path: /etc/systemd/system/raid-check.timer.d/
state: directory
- name: install the drop-in raid-check.timer override
copy:
dest: /etc/systemd/system/raid-check.timer.d/05-aws.conf
dest: /etc/systemd/system/raid-check.timer
content: |
[Unit]
Description=Monthly RAID health check in AWS
[Timer]
OnCalendar=Sat *-*-8..14 01:00:00
Persistent=true
AccuracySec=24h
[Install]
WantedBy=timers.target
notify: systemctl daemon-reload
- name: prepare mount point