Skip to content
Snippets Groups Projects
Commit dd5d0a12 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

delete commented out code in swap.yaml

parent f5f9a890
No related branches found
No related tags found
No related merge requests found
...@@ -45,53 +45,8 @@ ...@@ -45,53 +45,8 @@
- name: Create swapfiles - name: Create swapfiles
include_tasks: swap/create_swapfile.yaml include_tasks: swap/create_swapfile.yaml
vars: vars:
# swapfile_prefix: "{{ swapfile_prefix }}"
swapfile_filename: "{{ swapfile_infos.key }}" swapfile_filename: "{{ swapfile_infos.key }}"
# swap_dir: "{{ swap_dir }}"
swapfile_size: "{{ swapfile_infos.value }}" swapfile_size: "{{ swapfile_infos.value }}"
# debug:
# msg: "{{ swapfile_infos.key }}: {{ swapfile_infos.value }}"
loop_control: loop_control:
loop_var: swapfile_infos loop_var: swapfile_infos
with_items: "{{ swapfiles | dict2items }}" 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment