# Error while using Yum install packages on existing rhel template on VMware

**URL:** <https://forum.ansible.com/t/error-while-using-yum-install-packages-on-existing-rhel-template-on-vmware/26917>\
**Category:** Ansible Project\
**Tags:** rhel, vmware\
**Created:** [March 7, 2018, 8:03am UTC](https://forum.ansible.com/t/error-while-using-yum-install-packages-on-existing-rhel-template-on-vmware/26917 "2018-03-07T08:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiva\_Gonela](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Shiva\_Gonela](https://forum.ansible.com/u/Shiva_Gonela)\
**Post date:** [March 7, 2018, 8:03am UTC](https://forum.ansible.com/t/error-while-using-yum-install-packages-on-existing-rhel-template-on-vmware/26917/1 "2018-03-07T08:03:36Z")

</div>

Hi team, we are facing issues provisioning the rhel VM in Vmware environment using the existing template.  
here are list of tasks we are performing  
– provisioning the rhel Vm using existing template used vmware\_guest module  
– wait for the VM to be reachable  
– set the environment variables  
– yum install httpd,gcc,php, mysql related packages  
– copy the files to /var/www on destination VM  
– restart the httpd server

we are facing issues at yum install with repo issues.
