46 lines
No EOL
1.1 KiB
YAML
46 lines
No EOL
1.1 KiB
YAML
---
|
|
# tasks file for fedora
|
|
|
|
- name: "Add rpmfustion repo gpg keys"
|
|
ansible.builtin.rpm_key:
|
|
key: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- "https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020"
|
|
- "https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020"
|
|
|
|
- name: install the rpmfusion repo packages
|
|
dnf:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
- http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
|
|
|
|
- name: Remove unnecassary packages
|
|
dnf:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items: "{{ rem_packages }}"
|
|
|
|
|
|
- name: Install all current updates
|
|
dnf:
|
|
name: "*"
|
|
state: latest
|
|
|
|
|
|
|
|
- name: Install packages
|
|
dnf:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ packages }}"
|
|
|
|
|
|
- name: Install Flatpaks
|
|
flatpak:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ flatpaks }}" |