Ansible role which manage system limis.
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"
Add Stouts.limits
to your roles and set vars in your playbook file.
Example:
- hosts: all
roles:
- Stouts.limits
vars:
limits_limits:
- * - nofile 200000
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!