# How to Find OVF path to clone a OVF template from content library & which module need to use via Ansible Playbook

**URL:** <https://forum.ansible.com/t/how-to-find-ovf-path-to-clone-a-ovf-template-from-content-library-which-module-need-to-use-via-ansible-playbook/39874>\
**Category:** Get Help\
**Tags:** vmware, awx\
**Created:** [January 28, 2025, 3:48am UTC](https://forum.ansible.com/t/how-to-find-ovf-path-to-clone-a-ovf-template-from-content-library-which-module-need-to-use-via-ansible-playbook/39874 "2025-01-28T03:48:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gowthu](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Gowthu](https://forum.ansible.com/u/Gowthu)\
**Post date:** [January 28, 2025, 3:48am UTC](https://forum.ansible.com/t/how-to-find-ovf-path-to-clone-a-ovf-template-from-content-library-which-module-need-to-use-via-ansible-playbook/39874/1 "2025-01-28T03:48:26Z")

</div>

Hello everyone,

I am seeking assistance with cloning an OVF template from a content library using Ansible. Specifically, I would like to know which Ansible components are available for this task and how to retrieve the OVF and OVA path or URL.

I am currently using the following module in my Ansible playbook to clone a VM:

community.vmware.vmware\_deploy\_ovf:  
hostname: “XYZ”  
username: “XYZ”  
password: “XYZ”  
validate\_certs: no  
datacenter: “XYZ”  
cluster: “XYZ”  
datastore: “XYZ”  
folder: “XYZ”  
name: “XYZ”  
ovf: “{{ ovf\_path }}”  
networks:  
“XYZ”:  
ip: “XYZ”  
netmask: “XYZ”  
gateway: “XYZ”  
power\_on: yes  
delegate\_to: localhost

One of the mandatory inputs is “ovf\_path,” but I am unsure how to retrieve the path details in VMware. Is there any script available or a method to find the absolute OVF path or URL in VMware vSphere Client to execute the playbook successfully?

Any guidance or examples would be greatly appreciated. Thank you!!

---

<div class="post-metadata">

**Author:** ![mikemorency](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mikemorency/32/2672_2.png) [@mikemorency](https://forum.ansible.com/u/mikemorency)\
**Post date:** [February 3, 2025, 2:22pm UTC](https://forum.ansible.com/t/how-to-find-ovf-path-to-clone-a-ovf-template-from-content-library-which-module-need-to-use-via-ansible-playbook/39874/2 "2025-02-03T14:22:48Z")

</div>

That module is for deploying an OVF from your local machine (or whatever machine is running the ansible module).

To deploy an OVF from a content library, you should use  
[vmware\_content\_deploy\_ovf\_template\_module](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_content_deploy_ovf_template_module.html)

> <https://github.com/ansible-collections/community.vmware/blob/main/plugins/modules/vmware_content_deploy_ovf_template.py>

This module was recently migrated to the new vmware.vmware collection:

> <https://github.com/ansible-collections/vmware.vmware/blob/main/plugins/modules/deploy_content_library_ovf.py>

It will be included in the next release in a few weeks
