geerlingguy/ansible-role-swap

Support setting priority

esolitos opened this issue · 3 comments

On a system there can be multiple swap files/partitions, setting a priority allows to use the fast swap first and only later more slow swap destinations.

This is also useful if one wants to replace the current swap file in a graceful way:

  • Run the playbook to create (and use) the new swap file and set high priority.
  • Wait a while (depends on the system usage) so that the new swap file is being used
  • Run the playbook to disable and remove the old swap file.

Doing it in this way avoids spikes in resource usages.

stale commented

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale commented

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.