Skip to content

Stouts/Stouts.limits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stouts.limits

Build Status Galaxy

Ansible role which manage system limis.

Variables

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

# See http://linux.die.net/man/5/limits.conf for description
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' }

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

Usage

Add Stouts.limits to your roles and set vars in your playbook file.

Example:

- hosts: all

  roles:
    - Stouts.limits

  vars:
    limits_limits:
    - *    -    nofile    200000

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role which manage system limis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published