Skip to content

Instantly share code, notes, and snippets.

View rejitnatarajan's full-sized avatar

Rejit Natarajan rejitnatarajan

View GitHub Profile
- name: Create swap file
command: dd if=/dev/zero of={{ swap_file_path }} bs=1024 count={{ swap_file_size_kb }}k
creates="{{ swap_file_path }}"
tags:
- swap.file.create
- name: Change swap file permissions
file: path="{{ swap_file_path }}"
owner=root