mirror of https://github.com/ansible/ansible.git
Support latest version while upgrading VM hardware. (#62188)
Support for the `latest` version during an VM hardware upgrade.pull/63114/head
parent
4c79f1ec4d
commit
314f9fbd5c
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- vmware_guest - Add ability to upgrade the guest hardware version to latest fix issue #56273.
|
@ -0,0 +1,27 @@
|
|||||||
|
# Test code for the vmware_guest module.
|
||||||
|
# Copyright: (c) 2019, Pavan Bidkar <pbidkar@vmware.com>
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
# Skipping out idepotency test untill issue fixed in reconfigure_vm() become_method
|
||||||
|
|
||||||
|
- name: Upgrade VM to latest version
|
||||||
|
vmware_guest:
|
||||||
|
validate_certs: False
|
||||||
|
hostname: "{{ vcenter_hostname }}"
|
||||||
|
username: "{{ vcenter_username }}"
|
||||||
|
password: "{{ vcenter_password }}"
|
||||||
|
name: test_vm1
|
||||||
|
guest_id: centos7_64Guest
|
||||||
|
datacenter: "{{ dc1 }}"
|
||||||
|
folder: "{{ f0 }}"
|
||||||
|
datastore: '{{ ds2 }}'
|
||||||
|
hardware:
|
||||||
|
num_cpus: 4
|
||||||
|
memory_mb: 1028
|
||||||
|
version: latest
|
||||||
|
state: present
|
||||||
|
register: upgrade_vm
|
||||||
|
|
||||||
|
- name: assert that changes were made
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- upgrade_vm is changed
|
Loading…
Reference in New Issue