We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b2148e commit 0312ab8Copy full SHA for 0312ab8
tasks/install.yml
@@ -19,14 +19,14 @@
19
include_vars:
20
file: "ohpc-{{ ansible_facts.packages['ohpc-release'][0]['version'] }}"
21
22
-- name: Find CentOS8 PowerTools repo
+- name: Find PowerTools repo
23
find:
24
paths: /etc/yum.repos.d
25
- patterns: CentOS-*PowerTools.repo
+ patterns: '*-*PowerTools.repo'
26
register: powertools
27
when: ansible_distribution_major_version == "8"
28
29
-- name: Enable CentOS8 PowerTools repo
+- name: Enable PowerTools repo
30
# NB: doesn't run command `dnf config-manager --set-enabled PowerTools` as can't make that idempotent
31
lineinfile:
32
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