Skip to content

Commit c55a1e6

Browse files
authored
ansible: install Python 3.12 on RHEL 9 (#4215)
Refs: #4208
1 parent 7e5e1cb commit c55a1e6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

  • ansible/roles/baselayout/tasks/partials/repo

ansible/roles/baselayout/tasks/partials/repo/rhel9.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@
88
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9
99
state: present
1010

11-
- name: install EPEL 8
11+
- name: install EPEL 9
1212
ansible.builtin.dnf:
1313
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
1414
state: present
15+
16+
- name: install Python 3.12
17+
ansible.builtin.dnf:
18+
name: ['python3.12','python3.12-pip']
19+
state: present
20+
notify: package updated
21+
22+
- name: update python3 package alternatives
23+
community.general.alternatives:
24+
link: /usr/bin/python3
25+
name: python3
26+
path: /usr/bin/python3.12

0 commit comments

Comments
 (0)