Skip to content
Snippets Groups Projects
Commit 02739841 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

basic-system: fstrim cronjob

parent 69bf86dc
Branches
No related tags found
1 merge request!19basic-system: fstrim cronjob
Pipeline #3732 passed
......@@ -15,3 +15,4 @@ tmp_mount_options:
- nosuid
- nodev
- noexec
fstrim: false
#!/bin/sh
set -e
if command -v fstrim >/dev/null; then
fstrim -a
fi
......@@ -54,6 +54,17 @@
tags:
- etckeeper
- name: Configure fstrim cronjob
copy:
src: fstrim
dest: /etc/cron.daily/fstrim
owner: root
group: root
mode: '0755'
when: fstrim
tags:
- fstrim
- include: logging.yml
- meta: flush_handlers
- include: network.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment