My ansible setup to configure linux and install apps etc. in real and virtual environments.
- Ubuntu 24.04
- Fedora 40
-
Install Git
sudo apt install git
(Ubuntu)
-
Install Ansible
sudo apt install ansible
(Ubuntu)sudo dnf install ansible
(Fedora)
-
Install Flatpak
-
See official guide, e.g. https://flatpak.org/setup/Ubuntu
-
Although flatpak can be installed via ansible, a restart is required.
-
Ubuntu:
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
-
Fedora:
- Already setup on Fedora, but you can set remotes if needed:
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
-
-
Install psutil
Now done via ansiblesudo apt-get install -y python3-psutil
(Ubuntu)
sudo ansible-pull -U https://github.com/sketchbuch/configure_linux.git local.yaml
- Based on: https://www.youtube.com/watch?v=gIDywsGBqf4
- YML Validator
- What's the difference between include_tasks and import_tasks?
- Ansible – add user to sudo
- How to update package cache when using module package from ansible
- Check if user exists with Ansible
- Export and Import of Gnome Terminal Settings
- How to Install Microsoft Fonts on Fedora 37/36/35
- https://github.com/LearnLinuxTV/personal_ansible_desktop_configs
- https://github.com/pppontusw/ansible-role-linux-desktop
- https://gist.github.com/carlwgeorge/c560a532b6929f49d9c0df52f75a68ae
- https://github.com/PeterMosmans/ansible-role-customize-gnome
- https://github.com/FinalDes/ansible-ubuntu-disable-auto-update/
- https://github.com/MichaelAquilina/ubuntu-ansible/blob/master/roles/gnomeshell/tasks/main.yml
The following hosts are used:
Host | Description |
---|---|
all | All hosts |
real | Hosts that are real |
virtual | Hosts that are virtual, running in something like virtualbox |
Nice to have
- Android studio
- ssh
- clone repos
- Fedora sudo timeout to be same as ubuntu
- Add vars liek software install to debug
MMS
- Get MMS working
- NVM folder needs making before NVM task
Fedora 40
- ...
Ubuntu 24.04
- ...
Manual Todos After Running
- Setup online accounts
- Download keepassxc dbs
- Setup login to vsce
- Download wallpapers and set
- Clone Repos
- Deactivate desktop icons extension