Oefenweb.swapfile
Swapfile
This is an Ansible role used to manage a swap file on systems similar to Debian.
Requirements
fallocate
(this will be installed automatically)
Variables
swapfile_size
: [default:1G
,false
for no action]: The size of the swap file you want to create. You can specify sizes like KiB, MiB, GiB, TiB, PiB, and EiB (the "iB" is optional, so "K" is the same as "KiB") or in decimal like KB, MB, GB, PB, and EB.swapfile_swappiness
: [optional]: This percentage (vm.swappiness
) affects how often the system swaps memory pages – lower values mean less swapping.swapfile_vfs_cache_pressure
: [optional]: This percentage controls how aggressively the kernel reclaims memory used for caching directory and inode objects.
Dependencies
None
Example Usage
- hosts: all
roles:
- oefenweb.swapfile
or:
- hosts: all
roles:
- role: oefenweb.swapfile
swapfile_size: 1GB
swapfile_swappiness: 10
License
MIT
Author Information
Mischa ter Smitten (based on the work of kamaln7)
Feedback, Bug Reports, Requests, ...
All are welcome!
Installa
ansible-galaxy install Oefenweb.swapfile
Licenza
mit
Download
500.9k
Proprietario