mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
VMware: Gather facts when powerstate is specified (#37908)
This fix adds additional facts after VM powerstate management. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -103,6 +103,12 @@
|
||||
that:
|
||||
- "clone_d1_c1_f0_recreate.results|map(attribute='changed')|unique|list == [false]"
|
||||
|
||||
- name: assert that no changes were made after re-creating VM and task returns facts
|
||||
assert:
|
||||
that:
|
||||
- "'newvm_' + item | basename in clone_d1_c1_f0.results|map(attribute='instance.hw_name')|list"
|
||||
with_items: "{{ vmlist['json'] }}"
|
||||
|
||||
- name: modify the new VMs
|
||||
vmware_guest:
|
||||
validate_certs: False
|
||||
|
||||
Reference in New Issue
Block a user