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

basic-system: fstrim cronjob

parent 69bf86dc
No related branches found
No related tags found
1 merge request!19basic-system: fstrim cronjob
Pipeline #3732 passed
This commit is part of merge request !19. Comments created here will be created in the context of that merge request.
...@@ -15,3 +15,4 @@ tmp_mount_options: ...@@ -15,3 +15,4 @@ tmp_mount_options:
- nosuid - nosuid
- nodev - nodev
- noexec - noexec
fstrim: false
#!/bin/sh
set -e
if command -v fstrim >/dev/null; then
fstrim -a
fi
...@@ -54,6 +54,17 @@ ...@@ -54,6 +54,17 @@
tags: tags:
- etckeeper - 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 - include: logging.yml
- meta: flush_handlers - meta: flush_handlers
- include: network.yml - include: network.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment