https://github.com/maxgio92/ansible-role-swapfile
Ansible role to manage swapfile on Linux
https://github.com/maxgio92/ansible-role-swapfile
Last synced: about 2 months ago
JSON representation
Ansible role to manage swapfile on Linux
- Host: GitHub
- URL: https://github.com/maxgio92/ansible-role-swapfile
- Owner: maxgio92
- License: mit
- Created: 2019-06-14T15:55:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T13:47:31.000Z (almost 7 years ago)
- Last Synced: 2025-07-10T09:00:49.474Z (11 months ago)
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-role-swapfile
Ansible role to manage swapfile on Linux.
## Usage
```yaml
- hosts: all
tasks:
- include_role:
name: swapfile
vars:
# ...
```
### Available variables
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| configure| Set to false if you want to check without configure | bool | yes | no |
| debug | Set to true to debug | bool | no | no |
| min\_disk\_free\_space | Minimum free space to left on the related device when calculating the right size of the swapfile | float | 0.25 | no |
| skip\_pre\_checks | Set to true if you don't want to check if a swap is already configured | bool | no | no |
| swap\_file\_path | The path of the swapfile | string | '/swapfile' | no |
| swap\_file\_size\_mb | The size of the swapfile in MB | int | 4096 | no |
| swappiness | The value of the swappiness to configure | int | 60 | no |