mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
Adds example of using wildcard domain in pam_limits (#43391)
* Adds example of using wildcard domain * Fixes W293 * Slight formatting changes on the examples
This commit is contained in:
parent
54e1bca62a
commit
3a4b6b1d12
1 changed files with 13 additions and 6 deletions
|
@ -99,28 +99,35 @@ notes:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Add or modify nofile soft limit for the user joe
|
- name: Add or modify nofile soft limit for the user joe
|
||||||
- pam_limits:
|
pam_limits:
|
||||||
domain: joe
|
domain: joe
|
||||||
limit_type: soft
|
limit_type: soft
|
||||||
limit_item: nofile
|
limit_item: nofile
|
||||||
value: 64000
|
value: 64000
|
||||||
|
|
||||||
# Add or modify fsize hard limit for the user smith. Keep or set the maximal value.
|
- name: Add or modify fsize hard limit for the user smith. Keep or set the maximal value.
|
||||||
- pam_limits:
|
pam_limits:
|
||||||
domain: smith
|
domain: smith
|
||||||
limit_type: hard
|
limit_type: hard
|
||||||
limit_item: fsize
|
limit_item: fsize
|
||||||
value: 1000000
|
value: 1000000
|
||||||
use_max: yes
|
use_max: yes
|
||||||
|
|
||||||
# Add or modify memlock, both soft and hard, limit for the user james with a comment.
|
- name: Add or modify memlock, both soft and hard, limit for the user james with a comment.
|
||||||
- pam_limits:
|
pam_limits:
|
||||||
domain: james
|
domain: james
|
||||||
limit_type: '-'
|
limit_type: '-'
|
||||||
limit_item: memlock
|
limit_item: memlock
|
||||||
value: unlimited
|
value: unlimited
|
||||||
comment: unlimited memory lock for james
|
comment: unlimited memory lock for james
|
||||||
|
|
||||||
|
- name: Add or modify hard nofile limits for wildcard domain
|
||||||
|
pam_limits:
|
||||||
|
domain: '*'
|
||||||
|
limit_type: hard
|
||||||
|
limit_item: nofile
|
||||||
|
value: 39693561
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue