https://github.com/boutetnico/ansible-role-swap
Configure Linux swap using Ansible.
https://github.com/boutetnico/ansible-role-swap
ansible debian linux linux-swap swap ubuntu
Last synced: 4 months ago
JSON representation
Configure Linux swap using Ansible.
- Host: GitHub
- URL: https://github.com/boutetnico/ansible-role-swap
- Owner: boutetnico
- License: mit
- Created: 2020-02-25T10:15:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T14:42:59.000Z (9 months ago)
- Last Synced: 2024-12-28T11:16:08.436Z (6 months ago)
- Topics: ansible, debian, linux, linux-swap, swap, ubuntu
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/boutetnico/ansible-role-swap/actions?query=workflow%3A%22Test+ansible+role%22)
[](https://galaxy.ansible.com/boutetnico/swap)ansible-role-swap
=================This role configures Linux swap.
Requirements
------------Ansible 2.10 or newer.
Supported Platforms
-------------------- [Debian - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)
- [Ubuntu - 24.04 (Noble Numbat)](http://releases.ubuntu.com/24.04/)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-swapTesting
-------molecule test
License
-------MIT
Author Information
------------------[@boutetnico](https://github.com/boutetnico)