pam_limits
Collection: community.general
Full Name: parallax.community.general.pam_limits
Aliases: community.general.pam_limits, pam_limits
Synopsis
Manage entries in limits.conf
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| domain | string | yes | A username, @groupname, wildcard, UID/GID range | |
| limit_type | string | yes | Limit type: hard, soft, or - (both) | |
| limit_item | string | yes | The limit item (e.g. nofile, nproc, core) | |
| value | string | yes | The value of the limit | |
| dest | string | /etc/security/limits.conf | Path to the limits.conf file | |
| backup | bool | false | Create a backup file before editing | |
| use_max | bool | false | If set, only change the value if it is higher than the current value | |
| use_min | bool | false | If set, only change the value if it is lower than the current value | |
| comment | string | Comment associated with the limit |
Example
- name: Raise the open file limit for the app user
pam_limits:
domain: app
limit_type: soft
limit_item: nofile
value: "65536"
backup: true