swap

tests Ansible Galaxy

ansible-role-swap

This role configures Linux swap.

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
swap_dependencies yes [procps,util-linux] list
swap_enabled yes true bool
swap_size yes 1G string
swap_file yes /swap string
swap_swappiness no int
swap_vfs_cache_pressure no int

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - ansible-role-swap

Testing

molecule test

License

MIT

Author Information

@boutetnico

Install
ansible-galaxy install boutetnico/ansible-role-swap
GitHub repository
License
mit
Downloads
18
Owner
System Engineer