Skip to content

Commit 0312ab8

Browse files
committed
accomodate Rocky PowerTools repo name
1 parent 6b2148e commit 0312ab8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
include_vars:
2020
file: "ohpc-{{ ansible_facts.packages['ohpc-release'][0]['version'] }}"
2121

22-
- name: Find CentOS8 PowerTools repo
22+
- name: Find PowerTools repo
2323
find:
2424
paths: /etc/yum.repos.d
25-
patterns: CentOS-*PowerTools.repo
25+
patterns: '*-*PowerTools.repo'
2626
register: powertools
2727
when: ansible_distribution_major_version == "8"
2828

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

0 commit comments

Comments
 (0)