From 02157556fd6646b2273db04969a0f07d5d703ded Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 25 Jan 2021 12:00:08 +0100 Subject: [PATCH] Update to 2021-01-25 12:00 --- roles/common/tasks/system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/system.yml b/roles/common/tasks/system.yml index 21aa3df..5e54ebf 100644 --- a/roles/common/tasks/system.yml +++ b/roles/common/tasks/system.yml @@ -95,7 +95,7 @@ name: fstrim special_time: "{{ system_fstrim_freq }}" user: root - job: 'sleep $(( 1$(/bin/date +\%N) \% 300 )); /usr/bin/systemd-cat /usr/local/bin/fstrim_all' + job: 'sleep $(( 3600 + 1$(/bin/date +\%N) \% 7200 )); /usr/bin/systemd-cat /usr/local/bin/fstrim_all' cron_file: fstrim state: "{{ (ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'lxc') | ternary('absent','present') }}"