Rename roles according to ansible recommendations

This commit is contained in:
Timo Makinen 2022-01-29 23:53:32 +00:00
parent ce37f81e76
commit bc5eda7487
17 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1,4 @@
---
rpmfusion_free_keyurl: >-
https://rpmfusion.org/keys?action=AttachFile&do=get&target=
rpmfusion_free_baseurl: https://mirrors.rpmfusion.org/free/

View file

@ -0,0 +1,8 @@
---
dependencies:
- role: epel_repo
when: ansible_distribution != 'Fedora'
- role: powertools_repo
when:
- ansible_distribution != 'Fedora'
- ansible_distribution_major_version|int >= 8

View file

@ -0,0 +1,24 @@
---
- name: install rpm signing key
rpm_key:
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: "{{ rpmfusion_free_baseurl }}/el/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
state: installed
when: 'ansible_distribution != "Fedora"'
- name: enable repository
package:
name: "{{ rpmfusion_free_baseurl }}/fedora/rpmfusion-free-release-{{ ansible_distribution_version }}.noarch.rpm"
state: installed
when: 'ansible_distribution == "Fedora"'