You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
886 B
25 lines
886 B
--- |
|
|
|
# |
|
# For Red Hat Enterprise Linux (RHEL) and CentOS systems, parameter values |
|
# in the /etc/security/limits.d/90-nproc.conf file (RHEL/CentOS 6) or |
|
# /etc/security/limits.d/20-nproc.conf file (RHEL/CentOS 7) override the values |
|
# in the limits.conf file. Ensure that any parameters in the override file are |
|
# set to the required value. |
|
# |
|
|
|
- name: limits | Adjust PAM limits |
|
community.general.pam_limits: |
|
domain: '*' |
|
limit_type: "{{ item.type }}" |
|
limit_item: "{{ item.name }}" |
|
value: "{{ item.value }}" |
|
dest: "/etc/security/limits.d/20-nproc.conf" |
|
loop_control: |
|
label: "* {{ item.type }} {{ item.name }} {{ item.value }}" |
|
loop: |
|
- { type: 'soft', name: 'nofile', value: '524288' } |
|
- { type: 'hard', name: 'nofile', value: '524288' } |
|
- { type: 'soft', name: 'nproc', value: '131072' } |
|
- { type: 'hard', name: 'nproc', value: '131072' } |
|
|
|
|