This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |