Adding yum_repo role
@@ -0,0 +1,34 @@
+Role Name
+=========
+
+This role allows easy deployment of yum repository config files.
+Requirements
+------------
+Yum
+Role Variables
+--------------
+Dependencies
+Example Playbook
+----------------
+Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
+ - hosts: servers
+ roles:
+ - { role: username.rolename, x: 42 }
+License
+-------
+ASL 2.0
+Author Information
+------------------
+openshift online operations
@@ -0,0 +1,5 @@
+---
+# defaults file for yum-repo
+repo_enabled: "1"
+repo_gpg_check: "1"
@@ -0,0 +1,2 @@
+# handlers file for yum-repo
@@ -0,0 +1,8 @@
+galaxy_info:
+ author: openshift operations
+ description:
+ company: RedHat
+ license: ASL 2.0
+ min_ansible_version: 1.2
+dependencies: []
+# tasks file for yum-repo
+- name: Installing yum-repo template
+ template:
+ src: yumrepo.j2
+ dest: /etc/yum.repos.d/{{ repo_tag }}.repo
+[{{ repo_tag }}]
+name={{ repo_name }}
+baseurl={{ repo_baseurl }}
+enabled={{ repo_enabled }}
+gpg_check={{ repo_gpg_check }}
+# vars file for yum-repo