Skip to content

Adjust Resources

Go to Automation

View in GitLab

Description

This automation script adjusts the CPU and memory resources of a specified virtual machine (VM) in a VMware environment. It first shuts down the VM, then modifies the CPU and memory settings based on the provided variables, and finally powers the VM back on.

Credentials

  • sys_ansible_vmware

Input

Variable Description
target The target VM to adjust resources for
cpu Number of CPUs to set (optional)
mem_gb Amount of memory in GB to set (optional)

Output

None

Dependencies