https://github.com/escalate/ansible-raspberry-swap
An Ansible role that manages swap with dphys-swapfile on Raspberry Pi OS
https://github.com/escalate/ansible-raspberry-swap
ansible ansible-role dphys raspberry raspberry-pi raspberrypi self-hosted selfhosted swap swapfile swapoff swapon
Last synced: 2 months ago
JSON representation
An Ansible role that manages swap with dphys-swapfile on Raspberry Pi OS
- Host: GitHub
- URL: https://github.com/escalate/ansible-raspberry-swap
- Owner: escalate
- License: mit
- Created: 2021-06-04T04:48:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-16T10:22:27.000Z (over 1 year ago)
- Last Synced: 2025-03-16T11:27:46.811Z (over 1 year ago)
- Topics: ansible, ansible-role, dphys, raspberry, raspberry-pi, raspberrypi, self-hosted, selfhosted, swap, swapfile, swapoff, swapon
- Language: Jinja
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/escalate/ansible-raspberry-swap/actions/workflows/test.yml)
# Ansible Role: Raspberry - Swap
An Ansible role that manages [swap](https://wiki.debian.org/Swap) with [dphys-swapfile](http://neil.franklin.ch/Projects/dphys-swapfile/) on Raspberry Pi OS (Debian Bookworm).
## Role Variables
Please see [defaults/main.yml](https://github.com/escalate/ansible-raspberry-swap/blob/master/defaults/main.yml) for a complete list of variables that can be overridden.
## Dependencies
This role relies on the following dependencies:
- Roles: None
- Collections: [requirements.yml](https://github.com/escalate/ansible-raspberry-swap/blob/master/requirements.yml)
## Installation
```
$ ansible-galaxy role install escalate.swap
```
## Example Playbook
```
- hosts: all
roles:
- role: escalate.swap
tags: swap
```
## License
MIT