pam_limits

Collection: community.general

Full Name: parallax.community.general.pam_limits

Aliases: community.general.pam_limits, pam_limits

Synopsis

Manage pam limits

Parameters

NameTypeRequiredDefaultDescription
domainstringyesA username, @groupname, wildcard, UID/GID range
limit_typestringyesLimit type: hard, soft, or - (both)
limit_itemstringyesThe limit item (e.g. nofile, nproc, core)
valuestringyesThe value of the limit
deststring/etc/security/limits.confPath to the limits.conf file
backupboolfalseCreate a backup file before editing
use_maxboolfalseIf set, only change the value if it is higher than the current value
use_minboolfalseIf set, only change the value if it is lower than the current value
commentstringComment 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>