variabilisation
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
|
# Installation des repository RPMFUSION
|
||||||
|
|
||||||
{% if grains['os'] == 'Fedora' %}
|
{% if grains['os'] == 'Fedora' %}
|
||||||
{% set FEDORAVER=grains['osmajorrelease'] %}
|
{% set FEDORAVER=grains['osmajorrelease'] %}
|
||||||
Installons les repos RPM Fusio :
|
{% set URLROOT='https://download1.rpmfusion.org'%}
|
||||||
|
{% set URLFREE=URLROOT + '/free/fedora/rpmfusion-free-release-' + FEDORAVER + '.noarch.rpm' %}
|
||||||
|
{% set URLNONFREE=URLROOT + '/nonfree/fedora/rpmfusion-nonfree-release-' + FEDORAVER + '.noarch.rpm' %}
|
||||||
|
Installons les repos RPM Fusion :
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
- "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{FEDORAVER}}.noarch.rpm"
|
- "{{URLFREE}}"
|
||||||
- "https://download1.rpmfusion.org/free/fedora/rpmfusion-nonfree-release-{{FEDORAVER}}.noarch.rpm"
|
- "{{URLNONFREE}}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user