pam_limits
Collection: community.general
Full Name: parallax.community.general.pam_limits
Aliases: community.general.pam_limits, pam_limits
Synopsis
Manage pam limits
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: Example pam_limits task
pam_limits:
domain: <your_domain>
limit_type: <your_limit_type>
limit_item: <your_limit_item>
value: <your_value>