dotfiles/roles/system/el/tasks/main.yml
Matej Focko 657f0e30ea
roles(system/el): create a role for EL distros
Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-08-30 15:42:27 +02:00

26 lines
592 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