Browse Source

install epel-release before common packages

Omnia will now install all repos before attempting to install common packages.  This will fix issue #312

Signed-off-by: John Lockman <jlockman3@gmail.com>
John Lockman 3 years ago
parent
commit
13af1fe0a1
2 changed files with 7 additions and 2 deletions
  1. 7 1
      roles/common/tasks/main.yml
  2. 0 1
      roles/common/vars/main.yml

+ 7 - 1
roles/common/tasks/main.yml

@@ -27,6 +27,12 @@
     group: root
     mode: "{{ accelerator_discovery_script_mode }}"
 
+- name: Add epel-release repo
+  package:
+    name: epel-release
+    state: present
+  tags: install
+
 - name: Add elrepo GPG key
   rpm_key:
     state: present
@@ -132,4 +138,4 @@
     mode: "{{ hosts_file_mode }}"
   with_items:
     - "{{ groups['manager'] }}"
-  when: "'compute' in group_names"
+  when: "'compute' in group_names"

+ 0 - 1
roles/common/vars/main.yml

@@ -14,7 +14,6 @@
 ---
 
 common_packages:
-  - epel-release
   - yum-plugin-versionlock
   - gcc
   - nfs-utils