Stouts.limits

Stouts.limits

Build Status Galaxy

This is an Ansible role that manages system limits.

Variables

limits_enabled: yes
limits_path: /etc/security/limits.d/tune.conf

# For more details, check http://linux.die.net/man/5/limits.conf
limits_limits:
  - "*    -    nofile    65535"

limits_sysctl:
  - { name: 'net.ipv4.tcp_tw_recycle',      value: '1' }
  - { name: 'net.ipv4.tcp_tw_reuse',        value: '1' }
  - { name: 'net.ipv4.ip_local_port_range', value: '15000 35530' }

# Configuration files in /etc/pam.d/
limits_pamd_files:
  - "su"

How to Use

To use Stouts.limits, add it to your roles and set the variables in your playbook file.

Example:


- hosts: all

  roles:
    - Stouts.limits

  vars:
    limits_limits:
    - *    -    nofile    200000

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Feedback and Support

Feedback, bug reports, and requests are welcome!

Informazioni sul progetto

Ansible role which manage system limits

Installa
ansible-galaxy install Stouts.limits
Licenza
mit
Download
3.6M
Proprietario
Plump for good