Skip to content

Commit a6ea808

Browse files
authored
Update bootstrap.yml
1 parent b37e084 commit a6ea808

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ansible/bootstrap.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
mode: '0644'
1414
when: ansible_distribution_major_version == "9"
1515

16-
- name: Enable EPEL repository
17-
ansible.builtin.dnf:
18-
name: epel-release
19-
state: present
20-
21-
- name: Configure EPEL repository to use releasever 9
22-
ansible.builtin.command:
23-
cmd: "dnf config-manager --setopt=epel.releasever=9 --save"
24-
when: ansible_distribution_major_version == "9"
16+
- name: Set EPEL repository releasever to 9 (major version)
17+
ansible.builtin.lineinfile:
18+
path: /etc/yum.repos.d/epel.repo
19+
regexp: '^releasever='
20+
line: 'releasever=9'
21+
create: yes
22+
owner: root
23+
group: root
24+
mode: '0644'
2525

2626
- name: Clean DNF metadata
2727
ansible.builtin.command:

0 commit comments

Comments
 (0)