Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
matrix:
image:
- 'centos:8.2.2004'
- 'centos:8.3.2011'
- 'centos:7'
scenario:
- test1
Expand Down
9 changes: 8 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@
include_vars:
file: "ohpc-{{ ansible_facts.packages['ohpc-release'][0]['version'] }}"

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

- name: Enable CentOS8 PowerTools repo
# NB: doesn't run command `dnf config-manager --set-enabled PowerTools` as can't make that idempotent
lineinfile:
path: /etc/yum.repos.d/CentOS-PowerTools.repo
path: "{{ powertools.files[0].path }}" # 8.2: /etc/yum.repos.d/CentOS-PowerTools.repo 8.3: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
create: false # raises error if not already installed
regexp: enabled=
line: enabled=1
Expand Down