This Ansible role lets you manage one or multiple swap files. You can also manage kernel parameters related to how swap is used by the system.
Note that this role can not setup a swap file on a BTRFS filesystem.
Refer to debops.sysctl for paging and swapping related kernel settings.
debops.swapfile - Configure one or multiple swap files on a Linux system Copyright (C) 2015-2016 Maciej Delmanowski <email@example.com> Copyright (C) 2015-2016 Robin Schneider <firstname.lastname@example.org> Copyright (C) 2015-2016 DebOps https://debops.org/ This Ansible role is part of DebOps. DebOps is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation. DebOps is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with DebOps. If not, see https://www.gnu.org/licenses/.