diff --git a/tasks/setup/swap.yaml b/tasks/setup/swap.yaml
index 78424ddc2d1905771068c18cd7465878638cdea3..7ae248e95d96976385a2ed435d23805ccc3c9016 100644
--- a/tasks/setup/swap.yaml
+++ b/tasks/setup/swap.yaml
@@ -45,53 +45,8 @@
     - name: Create swapfiles
       include_tasks: swap/create_swapfile.yaml
       vars:
-        # swapfile_prefix: "{{ swapfile_prefix }}"
         swapfile_filename: "{{ swapfile_infos.key }}"
-        # swap_dir: "{{ swap_dir }}"
         swapfile_size: "{{ swapfile_infos.value }}"
-      # debug:
-      #   msg: "{{ swapfile_infos.key }}: {{  swapfile_infos.value }}"
       loop_control:
         loop_var: swapfile_infos
       with_items: "{{ swapfiles | dict2items }}"
-
-    # - name: Create swapfiles
-    #   loop_control:
-    #     loop_var: swapfile_index
-    #   with_items: "{{ range(swapsizes | length) }}"
-    #   block:
-    #     - name: Evaluate swapfile filename
-    #       set_fact:
-    #         swapfile_filename: "swapfile{{ '%04d' | format(highest_number + item) }}"
-    #         swapfile_path: "{{ swap_dir }}/{{ swapfile_filename }}"
-
-      #   - name: "Allocate file size for swapfile {{ swapfile_filename }}"
-      #     shell:
-      #       cmd: "fallocate -l {{ swap_sizes[item] }} {{ swapfile_path }}"
-      #     become: true
-
-      #   - name: "Setting permissions for swapfile {{ swapfile_filename }}"
-      #     file:
-      #       path: "{{ swapfile_path }}"
-      #       owner: root
-      #       group: root
-      #       mode: '0600'
-      #     become: true
-
-      #   - name: "Make swapfile from {{ swapfile_filename }}"
-      #     shell:
-      #       cmd: "mkswap {{ swapfile_filename }}"
-      #     become: true
-
-      #   - name: "Add swapfile {{ swapfile_filename }} to /etc/fstab"
-      #     blockinfile:
-      #       path: /etc/fstab
-      #       block: |
-      #         {{ swapfile_path }} none swap sw 0 0
-      #       state: present
-      #     become: true
-
-      #   - name: "Enable swapfile {{ swapfile_filename }}"
-      #     shell:
-      #       cmd: "swapon {{ swapfile_path }}"
-      #     become: true