this is regarding using modules

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

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

content from my file:

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.