dotfiles/roles/system/el/tasks/main.yml
Matej Focko 272700e6e2
fix(system/el): use explicit EL9 Copr chroot
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-09-16 23:08:35 +02:00

33 lines
750 B
YAML

---
- name: Enable EPEL
ansible.builtin.package:
name: epel-release
state: present
- name: Enable CRB for CentOS Stream
community.general.ini_file:
path: /etc/yum.repos.d/centos.repo
section: crb
option: enabled
value: 1
create: no
when: ansible_distribution == "CentOS"
- name: Enable CRB and Plus repositories for AlmaLinux
community.general.ini_file:
path: /etc/yum.repos.d/almalinux-{{ item }}.repo
section: "{{ item }}"
option: enabled
value: 1
create: no
when: ansible_distribution == "AlmaLinux"
loop:
- crb
- plus
- name: Enable mf's Copr
community.general.copr:
name: mfocko/mfocko
state: enabled
chroot: "epel-9-{{ ansible_architecture }}"
become: true