mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07: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:
parent
6e737c8cb6
commit
4edcbeb62d
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue