bushvin / ansible-module-xfs_quota

This ansible module allow one to set xfs user, group and project quotas
GNU General Public License v3.0
8 stars 2 forks source link

ansible-module-xfs_quota

An ansible module to apply XFS quotas.

Authors

This ansible module was created by William Leemans, and has seen the contribution of

Deprectaion notice

This module is included in Ansible as of v 2.8.

This repository will no longer be maintained.

Installation

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

Usage

- 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.

Examples

Please check out the module file for examples


To Do: