Ansible role to create and configure swap storage.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Path to the swapfile to create
swap_path: /swapfile
Size of the swapfile to create
swap_size: '{{ ansible_memtotal_mb }}'
Set vm.swappiness value
swap_swappiness: '10'
Set vm.vfs_cache_pressure value
swap_vfs_cache_pressure: '50'
swap
Apache-2.0