Fixed readme and some plays

This commit is contained in:
Elia Farin
2024-10-30 14:12:20 -05:00
parent 5f6cc4ae7b
commit 157a03738e
5 changed files with 29 additions and 5 deletions

View File

@@ -13,6 +13,13 @@ To install dependancies:
Edit the "all" file in ./ansible-fedora/group_vars to customize the setup
In order to easily use ansible, ssh keys are strongly recommended.
In order to generate an ssh key and add it to the authorized_keys file on your user, run the following commands and follow the prompts.
Passwords are recommended on all ssh keys
ssh-keygen -t ed25519
ssh-copy-id -i ~/.ssh/id_ed25519.pub localhost
Run the playbook

View File

@@ -1,9 +1,8 @@
release_ver: "41"
core_ver: "fc41"
username: "" #MY SUDO USER HERE
dnf_packages:
### List of DNF packages to install
dnf_installs:
- rhythmbox
- terminator
- git
@@ -15,11 +14,20 @@ dnf_packages:
- flatpak
- util-linux-user
- curl
- wget
- zsh
### List of DNF packages to remove (we remove firefox to avoid duplicates as we install the flatpak)
dnf_removes:
- firefox
### Flatpak sources to install
flatpak_remotes:
- { name: "flathub", url: "https://dl.flathub.org/repo/flathub.flatpakrepo"}
### Flatpak packages to install
flatpaks:
- { remote: "flathub", package: "com.discordapp.Discord" }
- { remote: "flathub", package: "com.github.tchx84.Flatseal" }

View File

@@ -8,4 +8,10 @@
ansible.builtin.dnf:
name: "{{ item }}"
state: present
loop: "{{ dnf_packages }}"
loop: "{{ dnf_installs }}"
- name: Remove Packages
ansible.builtin.dnf:
name: "{{ item }}"
state: absent
loop: "{{ dnf_removes }}"

View File

@@ -3,6 +3,7 @@
name:
- https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ release_ver }}.noarch.rpm
- https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ release_ver }}.noarch.rpm
disable_gpg_check: true
state: present
- name: DNF Update

View File

@@ -3,3 +3,5 @@
echo "Installing ansible, please authenticate with sudo"
sudo dnf install -y ansible
echo "Please remember to generate and install ssh keys like shown in the readme, or ansible will fail to authenticate."