Files
ansible/roles/fedora_workstation/tasks/main.yml
2025-12-29 10:02:48 +01:00

70 lines
1.7 KiB
YAML

---
# tasks file for fedora_workstation
- name: Install RPM Fusion Free repository
ansible.builtin.dnf:
name: "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: false
become: true
- name: Install RPM Fusion Nonfree repository
ansible.builtin.dnf:
name: "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: false
become: true
- name: Update package cache after adding RPM Fusion
ansible.builtin.dnf:
update_cache: true
become: true
- name: Ensure essential packages are installed
ansible.builtin.dnf:
name:
- zsh
- curl
- wget
- fastfetch
- dnf5-plugin-automatic
state: present
become: true
- name: Copy DNF Automatic configuration /etc/dnf/
ansible.builtin.copy:
src: files/automatic.conf
dest: "/etc/dnf/"
mode: "0644"
become: true
- name: Enable DNF Automatic Timer
ansible.builtin.systemd:
name: dnf-automatic.timer
enabled: true
state: started
become: true
- name: Ensure flatpak is installed
ansible.builtin.dnf:
name:
- flatpak
state: present
become: true
- name: Add flathub repository
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
become: true
- name: Install flatpak applications from flathub
community.general.flatpak:
name:
- com.github.tchx84.Flatseal
- org.keepassxc.KeePassXC
state: present
remote: flathub
become: true