ovirt.ovirt.ovirtvmips filter – VM all IPs
Note
This filter plugin is part of the ovirt.ovirt collection (version 3.2.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ovirt.ovirt
.
To use it in a playbook, specify: ovirt.ovirt.ovirtvmips
.
Synopsis
VM all IPs
Input
This describes the input of the filter, the value before | ovirt.ovirt.ovirtvmips
.
Parameter |
Comments |
---|---|
List of VMs |
Keyword parameters
This describes keyword parameters of the filter. These are the values key1=value1
, key2=value2
and so on in the following
example: input | ovirt.ovirt.ovirtvmips(key1=value1, key2=value2, ...)
Parameter |
Comments |
---|---|
Attribute by which the |
|
Filter the IPs by network address |
Examples
- name: Print VM all IPs
debug:
msg: "{{ vms.ovirt_vms | ovirt.ovirt.ovirtvmips }}"
- name: Print VM all IPs
debug:
msg: "{{ vms.ovirt_vms | ovirt.ovirt.ovirtvmips(attr='name') }}"
Return Value
Key |
Description |
---|---|
All IPs Returned: success |