ovirt.ovirt.ovirtdiff filter – Show what will be changed in next run of the VM
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.ovirtdiff
.
Synopsis
Show what will be changed in next run of the VM
Input
This describes the input of the filter, the value before | ovirt.ovirt.ovirtdiff
.
Parameter |
Comments |
---|---|
VM |
Examples
- name: Get VM myvm
ovirt_vm_info:
auth: "{{ ovirt_auth }}"
pattern: 'name={{ myvm }}'
next_run: false
register: vm
- name: Get next_run of VM myvm
ovirt_vm_info:
auth: "{{ ovirt_auth }}"
pattern: 'name={{ myvm }}'
next_run: true
register: vm_next_run
- name: Print what will be changed in next run of the VM
debug:
msg: "{{ vm.ovirt_vms[0] | ovirt.ovirt.ovirtdiff(vm_next_run.ovirt_vms[0]) }}"
Return Value
Key |
Description |
---|---|
VM Returned: success |