buluma.diskspace
Ansible Role diskspace
This role checks the available disk space (or inodes) and will fail if the available amount is too low.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example comes from molecule/default/converge.yml
and is tested with every update.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.diskspace
diskspace_mounts:
- name: /etc/resolv.conf
megabytes_available: 64
- name: /etc/hostname
gigabytes_available: 4
You need to prepare the machine first. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
You can see a full guide on using these roles.
Role Variables
Default variable values are in defaults/main.yml
:
---
# defaults file for diskspace
# Customize the list of mount points and their required available space.
diskspace_mounts: []
Requirements
- Install pip packages listed in requirements.txt.
State of Used Roles
These roles are needed to set up a system. You can use other methods if you prefer.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap |
Context
This role works with many other compatible roles. Check out the documentation for these roles for more details.
Here’s a visual of related roles:
Compatibility
This role has been tested with these container images:
container | tags |
---|---|
Alpine | all |
Amazon | all |
Debian | all |
EL | 8 |
Fedora | all |
opensuse | all |
Ubuntu | all |
Minimum Ansible version required is 2.12, and tests have been completed for:
- Last version.
- Current version.
- Development version.
If you find any issues, please report them on GitHub.
Changelog
License
Author Information
Check diskspace (or inodes) available, fail if too low.
ansible-galaxy install buluma.diskspace