ovirt.ovirt.get_ovf_disk_size filter – Get OVF disk size
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.get_ovf_disk_size
.
Synopsis
Get OVF disk size.
Input
This describes the input of the filter, the value before | ovirt.ovirt.get_ovf_disk_size
.
Parameter |
Comments |
---|---|
OVF data |
Examples
- name: Get ovf data
ansible.builtin.command: cat "{{ path }}"
register: ovf_data
- name: Get disk size from ovf data
ansible.builtin.set_fact:
disk_size: "{{ ovf_data['stdout'] | ovirt.ovirt.get_ovf_disk_size }}"
Return Value
Key |
Description |
---|---|
OVF disk size Returned: success |