mullholland.lvm_management

Ansible role lvm_management

Configures lvm drives on the server.

GitHub Downloads Version
github downloads Version

Example Playbook

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  # vars:
  #   example_var: "value"
  roles:
    - role: "mullholland.lvm_management"

Role Variables

The default values for the variables are set in defaults/main.yml:

---
lvm_management_max_gap_kb: 1024
lvm_management_devices: []
#  - partition: /dev/vda      # Which HDD should be resized
#    number: 2                # which partition number should be resized

lvm_management_lvm_configuration: []
#  - name: "lv_root"  # Name of the logical volume group
#    size: "10G"      # What should happen to the colume
#                     # 10G => sets the size to 10G regardless of the current size (WARNING DO NOT SHRINK IT!!!!!!)
#                     # +10G => adds 10G after each ansible run (NOT idempotent!!!)
#                     # +100%FREE => adds all Free Space to the lv
#    vg: "system"     # The name of the VolumeGroup the LV resides
#    fstype: "ext4"   # The filesystem the lv uses

Requirements

Context

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

container tags
EL all
Amazon Candidate
Fedora all
Ubuntu all
Debian all

The minimum version of Ansible required is 2.10, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub.

License

MIT.

Author Information

Mullholland

About

Configures lvm drives on the server.

Install
ansible-galaxy install mullholland.lvm_management
GitHub repository
License
apache-2.0
Downloads
99