diff --git a/roles/config_repos/files/epel.repo b/roles/config_repos/files/epel.repo new file mode 100644 index 0000000000000000000000000000000000000000..053ed43c62542e860cdb16660bdab1918b90fd7d --- /dev/null +++ b/roles/config_repos/files/epel.repo @@ -0,0 +1,8 @@ +# Place this file in your /etc/yum.repos.d/ directory + +[epel] +name=Extra Packages for Enterprise Linux 7 - $basearch +baseurl=https://consistency0/epel/$releasever/$basearch/ +enabled=0 +gpgcheck=0 +sslverify=false diff --git a/roles/config_repos/tasks/main.yml b/roles/config_repos/tasks/main.yml index fd13eb52916874e2c500602c01025ecae8470c1a..f397640fc77541b7daf56e35a499bef69e561ba8 100644 --- a/roles/config_repos/tasks/main.yml +++ b/roles/config_repos/tasks/main.yml @@ -35,13 +35,14 @@ with_items: - monashhpc_base.repo - monashhpc_others.repo + - epel.repo - name: get enabled repos #shell: yum repolist | grep -v "repo id" | grep -v "Loaded plugins" | head -n -1 | cut -f 1 -d '/' | sed -s 's/\!//' shell: yum repolist all | grep enabled | cut -f 1 -d '/' | sed -s 's/\!//' register: repolist check_mode: no - args: + args: warn: False - name: disable unwanted repos