rpmfusion-nonfree-repo: Initial version of role
This commit is contained in:
parent
8713c49742
commit
4cd5eed157
3 changed files with 30 additions and 0 deletions
4
rpmfusion-nonfree-repo/defaults/main.yml
Normal file
4
rpmfusion-nonfree-repo/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
rpmfusion_free_keyurl: >-
|
||||||
|
https://rpmfusion.org/keys?action=AttachFile&do=get&target=
|
||||||
|
rpmfusion_base_url: https://mirrors.rpmfusion.org/free/
|
2
rpmfusion-nonfree-repo/meta/main.yml
Normal file
2
rpmfusion-nonfree-repo/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
{role: rpmfusion-free-repo}
|
24
rpmfusion-nonfree-repo/tasks/main.yml
Normal file
24
rpmfusion-nonfree-repo/tasks/main.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
- name: install rpm signing key
|
||||||
|
rpm_key:
|
||||||
|
key: "{{ rpmfusion_free_keyurl }}RPM-GPG-KEY-rpmfusion-nonfree-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-nonfree-fedora-2020"
|
||||||
|
state: present
|
||||||
|
when: 'ansible_distribution == "Fedora"'
|
||||||
|
|
||||||
|
- name: enable repository
|
||||||
|
package:
|
||||||
|
name: "{{ rpmfusion_baseurl }}/el/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm"
|
||||||
|
state: installed
|
||||||
|
when: 'ansible_distribution != "Fedora"'
|
||||||
|
|
||||||
|
- name: enable repository
|
||||||
|
package:
|
||||||
|
name: "{{ rpmfusion_baseurl }}/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_version }}.noarch.rpm"
|
||||||
|
state: installed
|
||||||
|
when: 'ansible_distribution == "Fedora"'
|
Loading…
Add table
Reference in a new issue