Skip to content

Commit 721d259

Browse files
committed
fix powertools/crb repos
1 parent 4307c1f commit 721d259

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

tasks/install.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,26 @@
1616
loop_control:
1717
label: "{{ item.name }}"
1818

19-
# - name: Enable PowerTools repo
20-
# # NB: doesn't run command `dnf config-manager --set-enabled PowerTools` as can't make that idempotent
21-
# community.general.ini_file:
22-
# path: /etc/yum.repos.d/Rocky-PowerTools.repo
23-
# section: powertools
24-
# option: enabled
25-
# value: "1"
26-
# lineinfile:
27-
# path: /etc/yum.repos.d/Rocky-PowerTools.repo
28-
# create: false # raises error if not already installed
29-
# regexp: enabled=
30-
# line: enabled=1
31-
# when: its rocky8
32-
# TODO: FIXME: make this work with RL8 too
19+
- name: Enable PowerTools repo
20+
# NB: doesn't run command `dnf config-manager --set-enabled PowerTools` as can't make that idempotent
21+
community.general.ini_file:
22+
path: /etc/yum.repos.d/Rocky-PowerTools.repo
23+
section: powertools
24+
option: enabled
25+
value: "1"
26+
create: false
27+
no_extra_spaces: true
28+
when: ansible_distribution_major_version == '8'
29+
3330
- name: Enable CRB repo
3431
community.general.ini_file:
3532
path: /etc/yum.repos.d/rocky.repo
3633
section: crb
3734
option: enabled
3835
value: "1"
39-
mode: "0644"
40-
owner: root
41-
group: root
42-
#when: its rocky9
36+
create: false
37+
no_extra_spaces: true
38+
when: ansible_distribution_major_version == '9'
4339

4440
- name: Build host-specific list of required slurm packages
4541
set_fact:

0 commit comments

Comments
 (0)