Linux Servers Administration Tools
This playbook will add disk space to the root logical volume part of vg01.
It will also resize the / file system.
Note: The value of /dev/sda and vg01 are hardcoded as vars in the playbook. Edit when required.
Check the disk size on the server:
fdisk -l /dev/sda
Increase the disk space of the main OS disk using the Proxmox or VMware console.
Check the disk size to make sure additional space has been added:
fdisk -l /dev/sda
On the server itself, as root user, clone the repo:
git clone https://github.com/ericmsh/linux-adm-tools.git
cd linux-adm-tools
yum install -y ansible-core
ansible-galaxy collection install community.general
ansible-playbook -i inventory add-disk-space.yml