mirror of
https://github.com/de-it-krachten/ansible-role-lvm
synced 2026-05-14 03:41:45 +00:00
No description
- Jinja 100%
## [1.10.1](https://github.com/de-it-krachten/ansible-role-lvm/compare/v1.10.0...v1.10.1) (2026-04-08) ### Bug Fixes * Add support for ansible-code 2.19+ ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-lvm
Sets up LVM (Logical volume managment)
Create volume groups, logical volume & file systems
Dependencies
Roles
None
Collections
- ansible.posix
- community.general
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# List of required packages
lvm_packages:
- lvm2
# Defaults lists of volumegroups, logical volumes and file systems
lvm:
vg: []
lv: []
fs: []
# Shrink logical volumes
lvm_shrink: false
# Resize file system after logical volume changes
lvm_resizefs: true
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'lvm'
hosts: all
become: 'yes'
tasks:
- name: Include role 'lvm'
ansible.builtin.include_role:
name: lvm