community.general.xfs_quota – Manage quotas on XFS filesystems¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.xfs_quota
.
Synopsis¶
Configure quotas on XFS filesystems.
Before using this module /etc/projects and /etc/projid need to be configured.
Parameters¶
Examples¶
- name: Set default project soft and hard limit on /opt of 1g
community.general.xfs_quota:
type: project
mountpoint: /opt
bsoft: 1g
bhard: 1g
state: present
- name: Remove the default limits on /opt
community.general.xfs_quota:
type: project
mountpoint: /opt
state: absent
- name: Set default soft user inode limits on /home of 1024 inodes and hard of 2048
community.general.xfs_quota:
type: user
mountpoint: /home
isoft: 1024
ihard: 2048
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
William Leemans (@bushvin)