Skip to content

Commit 7acf112

Browse files
committed
revert changes to test
1 parent 0a60fe0 commit 7acf112

File tree

3 files changed

+21
-27
lines changed

3 files changed

+21
-27
lines changed

ansible/bootstrap.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22

3-
- hosts: all
4-
become: yes
5-
tasks:
6-
- name: Override /etc/dnf/vars/releasever with "9.4"
7-
ansible.builtin.lineinfile:
8-
path: /etc/dnf/vars/releasever
9-
line: "9.4"
10-
create: yes
11-
owner: root
12-
group: root
13-
mode: '0644'
14-
when: ansible_distribution_major_version == "9"
3+
# - hosts: all
4+
# become: yes
5+
# tasks:
6+
# - name: Override /etc/dnf/vars/releasever with "9.4"
7+
# ansible.builtin.lineinfile:
8+
# path: /etc/dnf/vars/releasever
9+
# line: "9"
10+
# create: yes
11+
# owner: root
12+
# group: root
13+
# mode: '0644'
14+
# when: ansible_distribution_major_version == "9"
1515

16-
- name: Clean DNF metadata
17-
ansible.builtin.command:
18-
cmd: dnf clean all
16+
# - name: Clean DNF metadata
17+
# ansible.builtin.command:
18+
# cmd: dnf clean all
1919

2020
- hosts: cluster
2121
gather_facts: false

ansible/roles/fail2ban/tasks/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
2-
- name: Use dnf to set EPEL releasever during installation
3-
ansible.builtin.command:
4-
cmd: >
5-
dnf install epel-release -y
6-
--setopt=releasever={{ ansible_distribution_major_version }}
7-
when: ansible_distribution_major_version in ["8", "9"]
2+
- name: Install EPEL repo
3+
package:
4+
name: epel-release
85

96
- name: Install fail2ban packages
107
package:

ansible/roles/ofed/tasks/install.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@
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: Use dnf to set EPEL releasever during installation
23-
ansible.builtin.command:
24-
cmd: >
25-
dnf install epel-release -y
26-
--setopt=releasever={{ ansible_distribution_major_version }}
27-
when: ansible_distribution_major_version in ["8", "9"]
22+
- name: Enable epel
23+
dnf:
24+
name: epel-release
2825

2926
- name: Check for existing OFED installation
3027
command: ofed_info

0 commit comments

Comments
 (0)