chore: move out the OS-specific roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
c7293cd6ea
commit
cfc02949d6
5 changed files with 2 additions and 2 deletions
roles/os/el/tasks
33
roles/os/el/tasks/main.yml
Normal file
33
roles/os/el/tasks/main.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue