https://github.com/rolehippie/volume
Ansible role to format and mount disks/volumes
https://github.com/rolehippie/volume
ansible ansible-role hacktoberfest role
Last synced: 6 months ago
JSON representation
Ansible role to format and mount disks/volumes
- Host: GitHub
- URL: https://github.com/rolehippie/volume
- Owner: rolehippie
- License: apache-2.0
- Created: 2019-01-24T12:00:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2026-01-12T10:30:52.000Z (6 months ago)
- Last Synced: 2026-01-12T18:26:19.883Z (6 months ago)
- Topics: ansible, ansible-role, hacktoberfest, role
- Language: Nix
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# volume
[](https://github.com/rolehippie/volume)
[](https://github.com/rolehippie/volume/actions/workflows/general.yml)
[](https://github.com/rolehippie/volume/actions/workflows/docs.yml)
[](https://github.com/rolehippie/volume/actions/workflows/galaxy.yml)
[](https://github.com/rolehippie/volume/blob/master/LICENSE)
[](https://galaxy.ansible.com/rolehippie/volume)
Ansible role to format and mount disks/volumes.
## Sponsor
Building and improving this Ansible role have been sponsored by my current and previous employers like **[Cloudpunks GmbH](https://cloudpunks.de)** and **[Proact Deutschland GmbH](https://www.proact.eu)**.
## Table of contents
- [Requirements](#requirements)
- [Default Variables](#default-variables)
- [volume_partitions](#volume_partitions)
- [Discovered Tags](#discovered-tags)
- [Dependencies](#dependencies)
- [License](#license)
- [Author](#author)
---
## Requirements
- Minimum Ansible version: `2.10`
## Default Variables
### volume_partitions
List of volume partitions
#### Default value
```YAML
volume_partitions: []
```
#### Example usage
```YAML
volume_partitions:
- name: mysql
number: 1
path: /var/lib/mysql
label: msdos
filesystem: ext4
device: /dev/sdb
options:
- discard
- nofail
- defaults
- name: foobar
number: 1
path: /var/lib/foobar
label: gpt
filesystem: ext4
device: /dev/sdc
state: present
part_start: 0%
part_end: 100%
part_type: primary
unit: %
flags: []
options:
- discard
- nofail
- defaults
```
## Discovered Tags
**_volume_**
## Dependencies
- [ansible.posix](https://github.com/ansible-collections/ansible.posix)
- [community.general](https://github.com/ansible-collections/community.general)
## License
Apache-2.0
## Author
[Thomas Boerger](https://github.com/tboerger)