File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change 16
16
loop_control :
17
17
label : " {{ item.name }}"
18
18
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
+
33
30
- name : Enable CRB repo
34
31
community.general.ini_file :
35
32
path : /etc/yum.repos.d/rocky.repo
36
33
section : crb
37
34
option : enabled
38
35
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'
43
39
44
40
- name : Build host-specific list of required slurm packages
45
41
set_fact :
You can’t perform that action at this time.
0 commit comments