xfs_quota

Collection: community.general

Full Name: parallax.community.general.xfs_quota

Aliases: community.general.xfs_quota, xfs_quota

Synopsis

Manage user, group and project quotas on XFS filesystems

Parameters

NameTypeRequiredDefaultDescription
namestringyesThe user, group, or project name to set quota for
bhardstringHard block limit
bsoftstringSoft block limit
ihardstringHard inode limit
isoftstringSoft inode limit
mountpointstringyesThe XFS mountpoint to apply quota to
rtbhardstringHard realtime block limit
rtbsoftstringSoft realtime block limit
typestringuserThe quota type Choices: user, group, project
statestringpresentState of the quota Choices: present, absent

Example

- name: Cap the app user's space on the data volume
  xfs_quota:
    name: app
    type: user
    mountpoint: /srv/data
    bsoft: 40g
    bhard: 50g
    state: present