diff --git a/ansible/roles/baselayout/tasks/partials/repo/rhel9.yml b/ansible/roles/baselayout/tasks/partials/repo/rhel9.yml index 0991bbb7a..6ef5cf019 100644 --- a/ansible/roles/baselayout/tasks/partials/repo/rhel9.yml +++ b/ansible/roles/baselayout/tasks/partials/repo/rhel9.yml @@ -8,7 +8,19 @@ key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9 state: present -- name: install EPEL 8 +- name: install EPEL 9 ansible.builtin.dnf: name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm state: present + +- name: install Python 3.12 + ansible.builtin.dnf: + name: ['python3.12','python3.12-pip'] + state: present + notify: package updated + +- name: update python3 package alternatives + community.general.alternatives: + link: /usr/bin/python3 + name: python3 + path: /usr/bin/python3.12