summaryrefslogtreecommitdiff
path: root/roles/fstrim/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fstrim/tasks/main.yml')
-rw-r--r--roles/fstrim/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/fstrim/tasks/main.yml b/roles/fstrim/tasks/main.yml
new file mode 100644
index 0000000..e7230a7
--- /dev/null
+++ b/roles/fstrim/tasks/main.yml
@@ -0,0 +1,8 @@
+# Trim filesystems to minimize resulted image
+- name: Trim {{ vyos_install_root }}/boot
+ become: true
+ command: fstrim {{ vyos_install_root }}/boot
+
+- name: Trim {{ vyos_write_root }}
+ become: true
+ command: fstrim {{ vyos_write_root }}