kevincoakley.disk
ansible-role-disk
This role helps you partition, manage RAID using mdadm, handle LVM, format, and mount disks on EL 7, 8, 9 and Ubuntu 18.04, 20.04, and 22.04.
Requirements
No special requirements.
Role Variables
Check the defaults/main.yml
file for configuration options.
Dependencies
This role doesn't have any dependencies.
Example Playbook
Here's a simple example of how to use this role:
- name: Partition, Manage LVM, Format and Mount Disks on Linux
hosts: disk
become: yes
become_method: sudo
vars:
parted:
- device: /dev/vdc
number: 1
label: gpt
state: present
lvg:
- vg: vg_test
pvs: /dev/vdc1
lvol:
- vg: vg_test
lv: lv_test
shrink: no
size: 100%FREE
filesystem:
- fstype: xfs
dev: /dev/vg_test/lv_test
mount:
- path: /mnt/volume-test-1
src: /dev/vg_test/lv_test
fstype: xfs
opts: defaults
roles:
- ansible-role-disk
License
This code is under the BSD license.
Author Information
Created by Kevin Coakley (https://github.com/kevincoakley)
Informazioni sul progetto
Partition, Manage LVM, Format and Mount Disks
Installa
ansible-galaxy install kevincoakley.disk
Licenza
Unknown
Download
1.6k
Proprietario