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:
parent
4bb210adf1
commit
58f5ee58e6
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue