32 lines
977 B
YAML
32 lines
977 B
YAML
---
|
|
- assert:
|
|
that: ansible_os_family == 'RedHat' and ansible_distribution == 'Fedora'
|
|
|
|
- name: install rpm fusion free gpg key
|
|
become: true
|
|
rpm_key:
|
|
key: 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020'
|
|
state: present
|
|
|
|
- name: install rpmfusion free repository
|
|
become: true
|
|
dnf:
|
|
name:
|
|
'https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ansible_distribution_major_version}}.noarch.rpm'
|
|
state: present
|
|
validate_certs: no
|
|
|
|
- name: install rpmfusion non-free gpg key
|
|
become: true
|
|
rpm_key:
|
|
key: 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020'
|
|
state: present
|
|
|
|
- name: install rpmfusion non-free repository
|
|
become: true
|
|
dnf:
|
|
name:
|
|
'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ansible_distribution_major_version}}.noarch.rpm'
|
|
state: present
|
|
validate_certs: no
|