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 11---
22- name : Use dnf to set EPEL releasever during installation
33 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"]
58
69- name : Install fail2ban packages
710 package :
Original file line number Diff line number Diff line change 1919 {{ _ofed_dnf_kernels.stdout_lines[1:] | map('split') | map(attribute=1) | map('regex_replace', '\.(?:.(?!\.))+$', '') | community.general.version_sort | last }}
2020 # dnf line format e.g. "kernel.x86_64 4.18.0-513.18.1.el8_9 @baseos "
2121
22- - name : Enable epel
22+ - name : Use dnf to set EPEL releasever during installation
2323 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"]
2528
2629- name : Check for existing OFED installation
2730 command : ofed_info
You can’t perform that action at this time.
0 commit comments