File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Use dnf to set EPEL releasever during installation
3
3
ansible.builtin.command :
4
- cmd : " dnf install epel-release --setopt=releasever=9"
4
+ cmd : >
5
+ dnf install epel-release -y
6
+ --setopt=releasever={{ ansible_distribution_major_version }}
7
+ when : ansible_distribution_major_version in ["8", "9"]
5
8
6
9
- name : Install fail2ban packages
7
10
package :
Original file line number Diff line number Diff line change 19
19
{{ _ofed_dnf_kernels.stdout_lines[1:] | map('split') | map(attribute=1) | map('regex_replace', '\.(?:.(?!\.))+$', '') | community.general.version_sort | last }}
20
20
# dnf line format e.g. "kernel.x86_64 4.18.0-513.18.1.el8_9 @baseos "
21
21
22
- - name : Enable epel
22
+ - name : Use dnf to set EPEL releasever during installation
23
23
ansible.builtin.command :
24
- cmd : " dnf install epel-release --setopt=releasever=9"
24
+ cmd : >
25
+ dnf install epel-release -y
26
+ --setopt=releasever={{ ansible_distribution_major_version }}
27
+ when : ansible_distribution_major_version in ["8", "9"]
25
28
26
29
- name : Check for existing OFED installation
27
30
command : ofed_info
You can’t perform that action at this time.
0 commit comments