Skip to content

Filter Running VMs

Go to Automation

View in GitLab

Description

This automation script filters running or non-running virtual machines from a list of targets. It checks the current power state of each VM and creates a list of VMs that match the specified filter (started or stopped).

Credentials

  • sys_ansible_vmware

Input

Variable Description
target Comma-separated list of target VMs
filter Filter to apply (started or stopped)

Output

Variable Description
filtered_targets List of filtered VMs

Dependencies