diff options
author | Aaditya Dhruv <[email protected]> | 2023-09-09 22:16:37 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-09-09 22:16:37 -0500 |
commit | dfc83144e0ba3bb5ea7d68721ec12b9edff13349 (patch) | |
tree | 891b2eab585daa32f4d2b105a87642a84a4e4fb5 | |
parent | 50de2694a70deee825226583cf013af33e5c8213 (diff) |
Update packages roles with defined structure
The packages roles now has a tasks list for DNF packages and flatpaks.
It will read from the variables yaml file to install the needed packages
-rw-r--r-- | src/packages/tasks/main.yaml | 24 | ||||
-rw-r--r-- | src/packages/vars/main.yaml | 162 |
2 files changed, 107 insertions, 79 deletions
diff --git a/src/packages/tasks/main.yaml b/src/packages/tasks/main.yaml index 2823c7c..2825a0f 100644 --- a/src/packages/tasks/main.yaml +++ b/src/packages/tasks/main.yaml @@ -1,15 +1,11 @@ -- name: Wayland Setup - hosts: all - remote_user: root - connection: local - vars: - packages: "{{ lookup('file', './packages.yaml') | from_yaml }}" - tasks: - - name: Package Management - ansible.builtin.debug: - msg: Using packages.yaml as source - - name: Installing Packages - ansible.builtin.dnf: - name: "{{ packages.groups.development }}" - state: latest +- name: Installing DNF Packages + ansible.builtin.dnf: + name: "{{ packages[item].dnf }}" + state: latest + loop: "{{ config.packages }}" +- name: Installing Flatpaks + community.general.flatpak: + name: "{{ packages[item].flatpak }}" + state: present + loop: "{{ config.packages }}" diff --git a/src/packages/vars/main.yaml b/src/packages/vars/main.yaml index f03a0df..1be4b88 100644 --- a/src/packages/vars/main.yaml +++ b/src/packages/vars/main.yaml @@ -1,77 +1,109 @@ --- -groups: +packages: gaming: - - wine - - wine-mono - - winetricks - - corectrl - - legendary - - mangohud - - mono-complete - - yt-dlp - - steam-devices - - yt-dlp-bash-completion - - yt-dlp-zsh-completion + dnf: + - wine + - wine-mono + - winetricks + - corectrl + - legendary + - mangohud + - mono-complete + - yt-dlp + - steam-devices + - yt-dlp-bash-completion + - yt-dlp-zsh-completion + flatpak: + - com.discordapp.Discord + - com.valvesoftware.Steam + - com.valvesoftware.SteamLink + - net.rpcs3.RPCS3 + - org.DolphinEmu.dolphin-emu + - org.citra_emu.citra + - org.prismlauncher.PrismLauncher + - org.ryujinx.Ryujinx + - com.obsproject.Studio + development: - - alacritty - - git - - neovim - - bat - - fzf - - cmake - - cronie - - golang - - kubectl - - meson - - ninja-build - - podman - - podman-compose - - qemu - - rclone - - restic - - virt-manager - - yamllint - - clang - - golang - - nasm - - wireshark - - ruby-devel + dnf: + - alacritty + - git + - neovim + - bat + - fzf + - cmake + - cronie + - golang + - kubectl + - meson + - ninja-build + - podman + - podman-compose + - qemu + - rclone + - restic + - virt-manager + - yamllint + - clang + - golang + - nasm + - wireshark + - ruby-devel + - flatpak + flatpak: + - rest.insomnia.Insomnia tools: - - NetworkManager-tui - - playerctl - - btop - - htop - - neofetch - - nmap - - wireguard-tools - - bluez - - pipewire - - lm_sensors + dnf: + - NetworkManager-tui + - playerctl + - btop + - htop + - neofetch + - nmap + - wireguard-tools + - bluez + - pipewire + - lm_sensors + flatpak: + - im.riot.Riot + - org.mozilla.Thunderbird + - md.obsidian.Obsidian + - com.github.GradienceTeam.Gradience + - com.github.jeromerobert.pdfarranger + - net.ankiweb.Anki + - org.signal.Signal + - sh.cider.Cider libraries: - - SDL2-devel - - ncurses-devel - - mesa-va-drivers-freeworld - - mesa-vdpau-drivers-freeworld + dnf: + - SDL2-devel + - ncurses-devel + - mesa-va-drivers-freeworld + - mesa-vdpau-drivers-freeworld + flatpak: xorg: - - bspwm - - sxhkd - - polybar - - dunst - - maim - - nitrogen - - picom - - xsetroot - - xclip + dnf: + - bspwm + - sxhkd + - polybar + - dunst + - maim + - nitrogen + - picom + - xsetroot + - xclip + flatpak: wayland: - - wayland-devel - - rofi-wayland - - wev - - wofi - - xclip - - dunst - - grim + dnf: + - wayland-devel + - rofi-wayland + - wev + - wofi + - xclip + - dunst + - grim + flatpak: |