Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fedora 35 Setup using Ansible

Setup Local Fedora Linux 35 using Ansible

Requirements

Install ansible & required collection (flatpak+dconf)

sudo dnf install ansible ansible-collection-community-general

Setup system

System configuration

  • Set system Hostname
  • Add rpmfusion
  • install some wanted packages
  • remove some unwanted packages
sudo ansible-playbook f35-setup-root.yaml

User configuration

  • add flathub flatpak repo
  • add gnome-nightly flatpak repo
  • install flatpaks from flathub
  • install flatpaks from gnome-night
  • disable Gnome Software updates auto download
ansible-playbook f35-setup-user.yaml
---
- name: "Setup local Fedora 35 system (root)"
hosts: localhost
connection: local
tasks:
- name: Set hostname to FedoraBox
ansible.builtin.hostname:
name: FedoraBox
use: systemd
- name: Install rpm fusion repo
dnf:
name:
- 'https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-35.noarch.rpm'
- 'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-35.noarch.rpm'
disable_gpg_check: yes
state: present
- name: Install packages
dnf:
name:
- neofetch
- tilix
- gnome-tweaks
- fish
- starship
- powerline-fonts
- toolbox
- flatpak-builder
- the_silver_searcher
- bpytop
state: present
- name: Install media codecs
dnf:
name:
- gstreamer1-plugins-bad-*
- gstreamer1-plugins-good-*
- gstreamer1-plugins-base
- gstreamer1-plugin-openh264
- gstreamer1-libav
exclude: gstreamer1-plugins-bad-free-devel
state: present
- name: Remove unwanted packages
dnf:
name:
- PackageKit-command-not-found
- PackageKit-gstreamer-plugin
state: absent
---
- name: "Setup local Fedora 35 system (user)"
hosts: localhost
connection: local
tasks:
- name: Add the flathub repository remote to the user installation
flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
method: user
- name: Add the repository remote to the user installation
flatpak_remote:
name: gnome-nightly
state: present
flatpakrepo_url: https://nightly.gnome.org/gnome-nightly.flatpakrepo
method: user
- name: Install flatpaks (flathub)
community.general.flatpak:
remote: flathub
method: user
name:
- net.cozic.joplin_desktop
- org.gnome.Extensions
- com.github.tchx84.Flatseal
- org.telegram.desktop
- org.inkscape.Inkscape
- org.shotcut.Shotcut
- org.gimp.GIMP
- com.github.rafostar.Clapper
- com.discordapp.Discord
- com.obsproject.Studio
- org.audacityteam.Audacity
- io.github.seadve.Kooha
- com.spotify.Client
- de.haeckerfelix.Shortwave
- org.gnome.gitlab.somas.Apostrophe
- com.github.johnfactotum.Foliate
- name: Install flatpaks (gnome-nightly)
community.general.flatpak:
remote: gnome-nightly
method: user
name:
- org.gnome.TextEditor.Devel
- org.gnome.Builder
- name: Disable Gnome software download update
community.general.dconf:
key: "/org/gnome/software/download-updates"
value: "false"
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment