34 lines
No EOL
1,018 B
YAML
34 lines
No EOL
1,018 B
YAML
---
|
|
- name: Get version of Fedora
|
|
shell: rpm -E %fedora
|
|
register: fedora_version
|
|
|
|
- name: Install RPMFusion RPMs with GPG keys
|
|
dnf:
|
|
name:
|
|
- "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ fedora_version.stdout }}.noarch.rpm"
|
|
- "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ fedora_version.stdout }}.noarch.rpm"
|
|
state: present
|
|
|
|
- name: Install Google Chrome repository
|
|
template:
|
|
src: templates/google-chrome.repo.j2
|
|
dest: /etc/yum.repos.d/google-chrome.repo
|
|
|
|
- name: Install repositories
|
|
template:
|
|
src: templates/{{ source }}/{{ item }}.repo.j2
|
|
dest: /etc/yum.repos.d/{{ item }}.repo
|
|
loop:
|
|
- fedora-modular
|
|
- fedora-updates-modular
|
|
- fedora-updates-testing-modular
|
|
- fedora-updates-testing
|
|
- fedora-updates
|
|
- fedora
|
|
- rpmfusion-free-updates-testing
|
|
- rpmfusion-free-updates
|
|
- rpmfusion-free
|
|
- rpmfusion-nonfree-updates-testing
|
|
- rpmfusion-nonfree-updates
|
|
- rpmfusion-nonfree |