swap
ansible-role-swap
This role configures Linux swap.
Requirements
Ansible 2.10 or newer.
Supported Platforms
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
Role Variables
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
swap_dependencies | yes | [procps,util-linux] |
list | |
swap_enabled | yes | true |
bool | |
swap_size | yes | 1G |
string | |
swap_file | yes | /swap |
string | |
swap_swappiness | no | int | ||
swap_vfs_cache_pressure | no | int |
Dependencies
None
Example Playbook
- hosts: all
roles:
- ansible-role-swap
Testing
molecule test
License
MIT
Author Information
Install
ansible-galaxy install boutetnico/ansible-role-swap
License
mit
Downloads
18
Owner
System Engineer