From ae826cddf4578ba86cde44756e05c82057d35cef Mon Sep 17 00:00:00 2001 From: mhoffmann1 Date: Wed, 19 Dec 2018 17:32:32 +0000 Subject: [PATCH] VMware: Update example vmware_deploy_ovf (#49893) * Update vmware_deploy_ovf.py Provided more detailed example using additional, often used parameters Co-Authored-By: mhoffmann1 * Replace variable values in example task Co-Authored-By: mhoffmann1 --- .../modules/cloud/vmware/vmware_deploy_ovf.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py b/lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py index 769241df5f..6eb690baed 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py +++ b/lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py @@ -116,6 +116,21 @@ EXAMPLES = r''' ovf: /path/to/ubuntu-16.04-amd64.ovf wait_for_ip_address: true delegate_to: localhost + +# Deploys a new VM named 'NewVM' in specific datacenter/cluster, with network mapping taken from variable and using ova template from an absolute path +- vmware_deploy_ovf: + hostname: '{{ vcenter_hostname }}' + username: '{{ vcenter_username }}' + password: '{{ vcenter_password }}' + datacenter: Datacenter1 + cluster: Cluster1 + datastore: vsandatastore + name: NewVM + networks: "{u'VM Network':u'{{ ProvisioningNetworkLabel }}'}" + validate_certs: no + power_on: no + ovf: /absolute/path/to/template/mytemplate.ova + delegate_to: localhost '''