Created
December 27, 2013 20:57
-
-
Save gregbuehler/8152527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Check if EPEL is installed | |
shell: yum repolist | grep epel | wc -l | |
register: epel_installed | |
- name: Install EPEL5 package | |
yum: name={epel5_rpm} state=installed | |
when: (epel_installed == 0) and (ansible_distribution_version.find('5.') != -1) | |
- name: Install EPEL6 package | |
yum: name={epel6_rpm} state=installed | |
when: (epel_installed == 0) and (ansible_distribution_version.find('6.') != -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment