rpmfusion-free-repo: Add support for Fedora
This commit is contained in:
parent
9853a1acd8
commit
8713c49742
2 changed files with 20 additions and 3 deletions
|
@ -1,11 +1,24 @@
|
|||
---
|
||||
- name: install rpm signing key
|
||||
rpm_key:
|
||||
key: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-8
|
||||
key: "{{ rpmfusion_free_keyurl }}RPM-GPG-KEY-rpmfusion-free-el-{{ ansible_distribution_major_version }}"
|
||||
state: present
|
||||
when: 'ansible_distribution != "Fedora"'
|
||||
|
||||
- name: install rpm signing key
|
||||
rpm_key:
|
||||
key: "{{ rpmfusion_free_keyurl }}RPM-GPG-KEY-rpmfusion-free-fedora-2020"
|
||||
state: present
|
||||
when: 'ansible_distribution == "Fedora"'
|
||||
|
||||
- name: enable repository
|
||||
package:
|
||||
name: |
|
||||
https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
|
||||
name: "{{ rpmfusion_baseurl }}/el/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
|
||||
state: installed
|
||||
when: 'ansible_distribution != "Fedora"'
|
||||
|
||||
- name: enable repository
|
||||
package:
|
||||
name: "{{ rpmfusion_baseurl }}/fedora/rpmfusion-free-release-{{ ansible_distribution_version }}.noarch.rpm"
|
||||
state: installed
|
||||
when: 'ansible_distribution == "Fedora"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue