forked from ISTI-ansible-roles/ansible-roles
Manage the users limits in a single place.
This commit is contained in:
parent
6230a82b0f
commit
bad5761366
|
@ -3,8 +3,13 @@
|
|||
lineinfile: dest=/etc/pam.d/su line="session required pam_limits.so" insertafter="^#\ \(Replaces\ the\ use\ of\ /etc/limits.*$"
|
||||
tags: [ 'su', 'pam_limits']
|
||||
|
||||
- name: Change the default security limits
|
||||
pam_limits: domain={{ item.domain }} limit_type={{ item.type }} limit_item={{ item.l_item }} value={{ item.value }}
|
||||
with_items: '{{ default_security_limits }}'
|
||||
- name: Change the root user security limits
|
||||
pam_limits: domain=root limit_type={{ item.type }} limit_item={{ item.l_item }} value={{ item.value }}
|
||||
with_items: '{{ root_security_limits }}'
|
||||
tags: [ 'su', 'pam_limits']
|
||||
|
||||
- name: Change other users security limits
|
||||
pam_limits: domain={{ item.domain }} limit_type={{ item.type }} limit_item={{ item.l_item }} value={{ item.value }}
|
||||
with_items: '{{ users_security_limits }}'
|
||||
tags: [ 'su', 'pam_limits']
|
||||
|
||||
|
|
Loading…
Reference in New Issue