How do we use swap in QualityBox

Notes from when I initially added swap to QualityBox

The play:

The play should definitely be reviewed and updated. (It looks like it’s not idempotent in the fstab step)

Can we dynamically determine the appropriate size for swap? Swap in QB is currently defaulted at 4GB which wouldn’t work at all on a 2GB RAM small-footprint system.