# this is regarding using modules

**URL:** <https://forum.ansible.com/t/this-is-regarding-using-modules/21024>\
**Category:** Ansible Developer\
**Created:** [March 30, 2016, 9:44pm UTC](https://forum.ansible.com/t/this-is-regarding-using-modules/21024 "2016-03-30T21:44:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@Amit\_Kumar2](https://forum.ansible.com/u/Amit_Kumar2)\
**Post date:** [March 30, 2016, 9:44pm UTC](https://forum.ansible.com/t/this-is-regarding-using-modules/21024/1 "2016-03-30T21:44:08Z")

</div>

I’m using ansible & ansible tower for capturing Server Configuration so that I can provision server on fly:

I’m trying to setup yum repository locally on ansible server but I’m getting error:

I referred this page:

[http://docs.ansible.com/ansible/yum\_repository\_module.html](http://www.linkedin.com/redir/redirect?url=http%3A%2F%2Fdocs%2Eansible%2Ecom%2Fansible%2Fyum_repository_module%2Ehtml&urlhash=zFHt&_t=tracking_anet)

and the Example which is mentioned above I copied in my setup.yml

content from my file:

- hosts: localhost  
tasks:
- name: Add multiple repositories into the same file (1/2)  
yum\_repository:  
name: epel  
description: EPEL YUM repo  
file: external\_repos  
baseurl: [http://download.fedoraproject.org/pub/epel/$releasever/$basearch/](http://www.linkedin.com/redir/redirect?url=http%3A%2F%2Fdownload%2Efedoraproject%2Eorg%2Fpub%2Fepel%2F%24releasever%2F%24basearch%2F&urlhash=H3wl&_t=tracking_anet)  
gpgcheck: no

I’m looking for right configuration If I’m missing something

apart from that I also like to verify if the task is done properly on machine [any log files]

Idea behind this is to add yum support dynamically to the server[ansible tower] by adding EPEL or Local Repository in /etc/yum.repos.d/my.repo by my setup.yml

and this is used on all servers from ansible tower machine to install and update rpm’s.
