An ansible module to apply XFS quotas.
This ansible module was created by William Leemans, and has seen the contribution of
This module is included in Ansible as of v 2.8.
This repository will no longer be maintained.
Copy the xfs_quota file to your module library. This can typically be found in /etc/ansible/ansible.cfg
Or include it in the library/modules path at the base of your ansible playbook.
When applying limits to a project, you need to make sure the required project names, ids and paths are populated in /etc/projects
and /etc/projid
- name: apply some xfs quota
xfs_quota:
type: user|group|project
name: <user/group/project name>
mountpoint: </path/to/mountpoint>
bhard: <hard blocks limit>
bsoft: <soft blocks limit>
ihard: <hard inode limit>
isoft: <soft inode limit>
rtbhard: <hard realtime blocks limit>
rtbsoft: <soft realtime blocks limit>
state: absent|present
where:
When removing the limit (ie setting state to absent), all limits are set to 0, but not really removed. If you do not specify any limits, none will be modified.
Please check out the module file for examples