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') }}"