From faa0adf9a7856bdbac543d4bcb1850aa36e39828 Mon Sep 17 00:00:00 2001 From: Bluemedia Date: Sun, 26 Nov 2023 22:04:12 +0100 Subject: [PATCH] Add essential tools --- main.yml | 3 ++- roles/desktop-environment/meta/main.yml | 2 ++ roles/desktop-environment/templates/sway-config.j2 | 2 ++ roles/essential-tools/meta/main.yml | 5 +++++ roles/essential-tools/tasks/main.yml | 10 ++++++++++ 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 roles/desktop-environment/meta/main.yml create mode 100644 roles/essential-tools/meta/main.yml create mode 100644 roles/essential-tools/tasks/main.yml diff --git a/main.yml b/main.yml index ed5f3bd..0be47f4 100644 --- a/main.yml +++ b/main.yml @@ -1,4 +1,5 @@ - hosts: localhost roles: - common - - desktop-environment \ No newline at end of file + - desktop-environment + - essential-tools # Thunar File Manager, Firefox, KeePassXC, Nextcloud Desktop \ No newline at end of file diff --git a/roles/desktop-environment/meta/main.yml b/roles/desktop-environment/meta/main.yml new file mode 100644 index 0000000..1afe99d --- /dev/null +++ b/roles/desktop-environment/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: common \ No newline at end of file diff --git a/roles/desktop-environment/templates/sway-config.j2 b/roles/desktop-environment/templates/sway-config.j2 index 48ab43d..ee26a2a 100644 --- a/roles/desktop-environment/templates/sway-config.j2 +++ b/roles/desktop-environment/templates/sway-config.j2 @@ -213,7 +213,9 @@ exec hash dbus-update-activation-environment 2>/dev/null && \ exec waybar # Autostart applications +{% if nextcloud == true %} exec --no-startup-id nextcloud --background +{% endif %} # Theme colors client.focused #c6c6c6 #1f1f1f #c6c6c6 #8abeb7 #8abeb7 diff --git a/roles/essential-tools/meta/main.yml b/roles/essential-tools/meta/main.yml new file mode 100644 index 0000000..f7565ea --- /dev/null +++ b/roles/essential-tools/meta/main.yml @@ -0,0 +1,5 @@ +dependencies: + - role: common + - role: desktop-environment + vars: + nextcloud: true \ No newline at end of file diff --git a/roles/essential-tools/tasks/main.yml b/roles/essential-tools/tasks/main.yml new file mode 100644 index 0000000..bb742a4 --- /dev/null +++ b/roles/essential-tools/tasks/main.yml @@ -0,0 +1,10 @@ +- name: Install essential tools + become: yes + apt: + state: latest + install_recommends: false + name: + - thunar + - firefox + - keepassxc + - nextcloud-desktop \ No newline at end of file