85 lines
2.2 KiB
YAML
85 lines
2.2 KiB
YAML
---
|
|
#
|
|
# Copyright (c) 2017 Jacques-Philippe JUBENOT
|
|
# Licensed under CC BY 3.0. All rights reserved.
|
|
#
|
|
|
|
# Role Default
|
|
|
|
# Add Repository RPM Fusion FREE
|
|
- name: Verify if RPM Fusion FREE Repository exist
|
|
stat: path=/etc/yum.repos.d/rpmfusion-free.repo
|
|
register: fusionfrepo
|
|
tags:
|
|
- repofusion
|
|
- basicinst
|
|
|
|
- name: Add Repository RPM Fusion FREE
|
|
ansible.builtin.dnf:
|
|
name: https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
disable_gpg_check: true
|
|
state: present
|
|
when: fusionfrepo.stat.exists == False
|
|
tags:
|
|
- repofusion
|
|
- basicinst
|
|
|
|
# Add Repository RPM Fusion Non-FREE
|
|
- name: Verify if RPM Fusion Non-FREE Repository exist
|
|
stat: path=/etc/yum.repos.d/rpmfusion-nonfree.repo
|
|
register: fusionnfrepo
|
|
tags:
|
|
- repofusion
|
|
- basicinst
|
|
|
|
- name: Add Repository RPM Fusion Non-FREE
|
|
ansible.builtin.dnf:
|
|
name: https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
disable_gpg_check: true
|
|
state: present
|
|
when: fusionnfrepo.stat.exists == False
|
|
tags:
|
|
- repofusion
|
|
- basicinst
|
|
|
|
# Add Repository Oracle VirtualBox
|
|
- name: Verify if Oracle VirtualBox Repository exist
|
|
stat: path=/etc/yum.repos.d/virtualbox.repo
|
|
register: repooracle
|
|
tags:
|
|
- repooracle
|
|
|
|
# Add Repository VScode
|
|
- name: Verify if VScode Repository exist
|
|
stat: path=/etc/yum.repos.d/vscode.repo
|
|
register: vscoderepo
|
|
tags:
|
|
- repovscode
|
|
- basicinst
|
|
|
|
- name: VScode enable Repository
|
|
ansible.builtin.yum_repository:
|
|
name: vscode
|
|
description: VSCode
|
|
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
|
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
when: vscoderepo.stat.exists == False
|
|
tags:
|
|
- repovscode
|
|
- basicinst
|
|
|
|
# Fast Mirror Option for DNF
|
|
- name: Fast Mirror Option for DNF
|
|
lineinfile: dest=/etc/dnf/dnf.conf line="fastestmirror=true"
|
|
tags:
|
|
- fastdnf
|
|
- basicinst
|
|
|
|
# Parallel Download for DNF
|
|
- name: Parallel Download for DNF
|
|
lineinfile: dest=/etc/dnf/dnf.conf line="max_parallel_downloads=10"
|
|
tags:
|
|
- fastdnf
|
|
- basicinst |