add swapfile role

This commit is contained in:
Sergey Malyuk
2025-12-18 10:54:07 +03:00
parent 02d63ac131
commit d27ba46d5b
11 changed files with 216 additions and 0 deletions

39
roles/swapfile/README.md Normal file
View File

@@ -0,0 +1,39 @@
ansible-swapfile
=========
Create/destroy a swapfile and run swapon/-off on it.
Massively borrowing from https://github.com/geerlingguy/ansible-role-swap.
Requirements
------------
None
Role Variables
--------------
None
Dependencies
------------
None
Example Playbook
----------------
```yaml
roles:
- role: genlab.swapfile
```
License
-------
BSD
Author Information
------------------
corvus-migratorius@proton.me