51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
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-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
|
|
become: true
|
|
|
|
- name: Install RPMFusion RPMs with GPG keys
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- "https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
|
|
- "https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm"
|
|
disable_gpg_check: true
|
|
state: present
|
|
tags: os-el-rpmfusion
|
|
|
|
- name: Install Google Chrome repository
|
|
ansible.builtin.copy:
|
|
src: files/google-chrome.repo
|
|
dest: /etc/yum.repos.d/google-chrome.repo
|
|
mode: 0640
|
|
owner: root
|
|
group: root
|
|
tags: os-el-chrome
|