OULibraries / ansible-role-centos7

Base CentOS7 role for OULib.
MIT License
0 stars 1 forks source link

Optionally create swapfile #27

Closed jsnshrmn closed 7 years ago

jsnshrmn commented 7 years ago

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

jsnshrmn commented 7 years ago

closes https://github.com/OULibraries/ansible-role-centos7/issues/26