From 9702a6f740f6efb3b6bcfb0e4474a1c70b9b3f28 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Mon, 15 Jul 2024 13:49:33 -0400 Subject: [PATCH] refactoring --- roles/base/tasks/main.yml | 60 --------------------------------- roles/extra_apps/tasks/main.yml | 21 ++++++++++++ roles/gnome/tasks/main.yml | 9 +++++ roles/gui_apps/tasks/main.yml | 25 ++++++++++++++ site.yml | 7 ++-- 5 files changed, 60 insertions(+), 62 deletions(-) create mode 100644 roles/extra_apps/tasks/main.yml create mode 100644 roles/gnome/tasks/main.yml create mode 100644 roles/gui_apps/tasks/main.yml diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 6bc16b5..ffdfbdb 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -13,63 +13,3 @@ - build-essential - fail2ban state: present - - -- name: Install GNOME3 Desktop with extensions - become: yes - package: - name: - - ubuntu-desktop - - task-gnome-desktop - - gnome-shell-extensions - - flatpak - state: present - -- name: Install GUI apps - become: yes - package: - name: - - terminator - - gimp - - snapd - - openconnect - - network-manager-openconnect - - network-manager-openconnect-gnome - - calibre - - transmission-gtk - state: present - -- name: Install flatpaks - become: yes - community.general.flatpak: - name: https://dl.flathub.org/repo/appstream/com.spotify.Client.flatpakref - state: present - - -- name: Install Steam snap - become: yes - community.general.snap: - name: - - steam - - code - state: present - -- name: Install Codium snap - become: yes - community.general.snap: - name: - - code - classic: true - state: present - -- name: Install Chrome - become: yes - tags: chrome - apt: - deb: https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - -- name: Install fastfetch - become: yes - tags: fastfetch - apt: - deb: https://github.com/fastfetch-cli/fastfetch/releases/download/2.18.1/fastfetch-linux-amd64.deb diff --git a/roles/extra_apps/tasks/main.yml b/roles/extra_apps/tasks/main.yml new file mode 100644 index 0000000..47af710 --- /dev/null +++ b/roles/extra_apps/tasks/main.yml @@ -0,0 +1,21 @@ +- name: Install Spotify flatpak + become: yes + community.general.flatpak: + name: https://dl.flathub.org/repo/appstream/com.spotify.Client.flatpakref + state: present + + +- name: Install Steam snap + become: yes + community.general.snap: + name: + - steam + state: present + +- name: Install Codium snap + become: yes + community.general.snap: + name: + - code + classic: true + state: present diff --git a/roles/gnome/tasks/main.yml b/roles/gnome/tasks/main.yml new file mode 100644 index 0000000..abbc09c --- /dev/null +++ b/roles/gnome/tasks/main.yml @@ -0,0 +1,9 @@ +- name: Install GNOME3 Desktop with extensions + become: yes + package: + name: + - ubuntu-desktop + - task-gnome-desktop + - gnome-shell-extensions + - flatpak + state: present diff --git a/roles/gui_apps/tasks/main.yml b/roles/gui_apps/tasks/main.yml new file mode 100644 index 0000000..fd4655c --- /dev/null +++ b/roles/gui_apps/tasks/main.yml @@ -0,0 +1,25 @@ +- name: Install GUI apps + become: yes + package: + name: + - terminator + - gimp + - snapd + - openconnect + - network-manager-openconnect + - network-manager-openconnect-gnome + - calibre + - transmission-gtk + state: present + +- name: Install Chrome + become: yes + tags: chrome + apt: + deb: https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + +- name: Install fastfetch + become: yes + tags: fastfetch + apt: + deb: https://github.com/fastfetch-cli/fastfetch/releases/download/2.18.1/fastfetch-linux-amd64.deb diff --git a/site.yml b/site.yml index c4a74ae..f2225ba 100644 --- a/site.yml +++ b/site.yml @@ -12,8 +12,11 @@ - hosts: all become: true - roles: + roles: - base + - gnome + - gui_apps + - extra_apps - ppa - docker - - nvidia \ No newline at end of file + - nvidia