This Ansible role partitions and mounts disks according to partition_disks, used across many hosts to prepare data volumes (GitLab, backup, logging, web data, etc.).
The Ansible Role is written and actively maintained by Blunix GmbH. It is used in the Blunix Linux Managed Hosting Stack. Its usage is documented at our Linux Managed Hosting Documentation.
- Partitions and formats specified block devices.
- Creates and mounts the target directories with desired ownership and mode.
- Supports per-disk mount and mkfs options.
- Ansible: >= 2.20.0
- Managed operating systems: Debian bullseye
Define disks to partition/mount in inventory via partition_disks. Each item sets the device, mountpoint, filesystem options, and ownership.
example/inventory/group_vars/util_backup.yml— disk definition for backup host.example/play.yml— play applying the role to util_backup.
Add more disks in host/group vars for GitLab, logging, NFS, or web data servers as needed.
Blunix GmbH Berlin
root@Linux:~# Support | Consulting | Hosting | Training
Blunix GmbH provides 24/7/365 Linux emergency support and consulting, Service Level Agreements for Debian Linux managed hosting using Ansible Configuration Management as well as Linux trainings and workshops.
Learn more at https://www.blunix.com.
Click here to see our Contact Information.
For bug reports and feature requests, please open an issue in this repository’s GitHub issue tracker.
Apache-2.0
Please refer to the LICENSE file in the root of this repository.
The directory test/ contains an example play.yml as well as inventory/group_vars/, if applicable to the role. the script example/run-tests.sh creates a IONOS cloud instance with terraform, uses the example inventory and playbook to run the role and then run pytest tests located in example/tests/. Destroy the terraform using ./run-tests.sh -d.