Tested new swap creation
Tested skipping of hosts with no swap specified
Tested "no change" on hosts that already had the specified swap file
Notes:
Doesn't check free space before running dd.
Doesn't check if swap is of the specified size
Only turns swap on, doesn't turn swap off
Doesn't do anything with swap partitions
Optionally create swapfile of the specified path and size. Don't do anything new by default.
Motivation and Context
We've enabled swapfiles on a few boxes now, and we're not tracking that anywhere. https://github.com/OULibraries/ansible-role-centos7/issues/26
How Has This Been Tested?
Tested new swap creation Tested skipping of hosts with no swap specified Tested "no change" on hosts that already had the specified swap file
Notes:
Doesn't check free space before running dd. Doesn't check if swap is of the specified size Only turns swap on, doesn't turn swap off Doesn't do anything with swap partitions