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