Open
Description
There were tasks:
- Add swap module ansible/ansible#5241 (Add swap module)
- Unable to mount multiple swap files ansible/ansible#30090 (Unable to mount multiple swap files)
closed due to migration to collections.
Docs:
- https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html
- https://galaxy.ansible.com/ansible/posix
don't mention swap support. I believe it is not implemented.
There are two things here:
- swap creation (LVM/file/partition) - because of variety it is out of scope
- swap registration and activation:
- add/update/remove entry in
/etc/fstab
- call to
swapon
/swapoff
.
- add/update/remove entry in