Skip to content

Ansible role to create and configure swap storage

License

Notifications You must be signed in to change notification settings

rolehippie/swap

Repository files navigation

swap

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to create and configure swap storage.

Sponsor

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

swap_path

Path to the swapfile to create

Default value

swap_path: /swapfile

swap_size

Size of the swapfile to create

Default value

swap_size: '{{ ansible_memtotal_mb }}'

swap_swappiness

Set vm.swappiness value

Default value

swap_swappiness: '10'

swap_vfs_cache_pressure

Set vm.vfs_cache_pressure value

Default value

swap_vfs_cache_pressure: '50'

Discovered Tags

swap

Dependencies

License

Apache-2.0

Author

Thomas Boerger