From 88bba21708668487fbc6fdaeb2bd148b6208cecc Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Tue, 10 Dec 2019 15:05:07 +0000 Subject: [PATCH] Documenting how to change VM's params (#65429) --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index 9439f49971f..7b95a48b0f6 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -29,7 +29,7 @@ requirements: - python >= 2.6 - PyVmomi notes: - - Please make sure that the user used for vmware_guest has the correct level of privileges. + - Please make sure that the user used for M(vmware_guest) has the correct level of privileges. - For example, following is the list of minimum privileges required by users to create virtual machines. - " DataStore > Allocate Space" - " Virtual Machine > Configuration > Add New Disk" @@ -38,9 +38,11 @@ notes: - " Network > Assign Network" - " Resource > Assign Virtual Machine to Resource Pool" - "Module may require additional privileges as well, which may be required for gathering facts - e.g. ESXi configurations." - - Tested on vSphere 5.5, 6.0, 6.5 and 6.7 - - Use SCSI disks instead of IDE when you want to expand online disks by specifying a SCSI controller - - Uses SysPrep for Windows VM (depends on 'guest_id' parameter match 'win') with PyVmomi + - Tested on vSphere 5.5, 6.0, 6.5 and 6.7. + - Use SCSI disks instead of IDE when you want to expand online disks by specifying a SCSI controller. + - Uses SysPrep for Windows VM (depends on 'guest_id' parameter match 'win') with PyVmomi. + - In order to change the VM's parameters (e.g. number of CPUs), the VM must be powered off unless the hot-add + support is enabled and the C(state=present) must be used to apply the changes. - "For additional information please visit Ansible VMware community wiki - U(https://github.com/ansible/community/wiki/VMware)." options: state: