Skip to content

Commit

Permalink
Merge pull request #125 from stackhpc/feature/Rocky
Browse files Browse the repository at this point in the history
Support Rocky Linux
  • Loading branch information
cityofships authored Jan 18, 2022
2 parents 6b2148e + 5303f2e commit 42db2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ jobs:
fail-fast: false
matrix:
image:
- 'centos:8.2.2004'
- 'centos:8.3.2011'
- 'centos:8.4.2105'
- 'centos:7'
- 'rockylinux:8.5'
scenario:
- test1
- test1b
Expand Down
6 changes: 3 additions & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
include_vars:
file: "ohpc-{{ ansible_facts.packages['ohpc-release'][0]['version'] }}"

- name: Find CentOS8 PowerTools repo
- name: Find PowerTools repo
find:
paths: /etc/yum.repos.d
patterns: CentOS-*PowerTools.repo
patterns: '*-*PowerTools.repo'
register: powertools
when: ansible_distribution_major_version == "8"

- name: Enable CentOS8 PowerTools repo
- name: Enable PowerTools repo
# NB: doesn't run command `dnf config-manager --set-enabled PowerTools` as can't make that idempotent
lineinfile:
path: "{{ powertools.files[0].path }}" # 8.2: /etc/yum.repos.d/CentOS-PowerTools.repo 8.3: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
Expand Down

0 comments on commit 42db2fa

Please sign in to comment.