render vsphere_resource_pool only if defined
This commit is contained in:
parent
fc29764911
commit
9cdd2214f9
1 changed files with 4 additions and 0 deletions
|
@ -14,7 +14,11 @@ server = "{{ vsphere_vcenter_ip }}"
|
|||
datacenter = "{{ vsphere_datacenter }}"
|
||||
folder = "{{ vsphere_working_dir }}"
|
||||
default-datastore = "{{ vsphere_datastore }}"
|
||||
|
||||
{% if vsphere_resource_pool is defined and vsphere_resource_pool != "" %}
|
||||
resourcepool-path = "{{ vsphere_resource_pool }}"
|
||||
{% endif %}
|
||||
|
||||
|
||||
[Disk]
|
||||
scsicontrollertype = {{ vsphere_scsi_controller_type }}
|
||||
|
|
Loading…
Reference in a new issue