From 54b8cb884d628548ac083493e6d432cde0165739 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 21 Jul 2023 06:10:55 +0200 Subject: [PATCH] swap --- debian12-basic.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/debian12-basic.yml b/debian12-basic.yml index 51af9d7..3c817b2 100644 --- a/debian12-basic.yml +++ b/debian12-basic.yml @@ -18,12 +18,7 @@ - unp - name: Create swap file - command: | - {% if swapfile_fallocate %} - fallocate -l {{ ((swapfile_size) | int * 1024 * 1024) }} {{ swapfile_path }} - {% else %} - dd if=/dev/zero of={{ swapfile_path }} bs=1M count={{ swapfile_size }} - {% endif %} + command: dd if=/dev/zero of={{ swapfile_path }} bs=1M count={{ swapfile_size }} args: creates: "{{ swapfile_path }}" register: swapfile_register_create