From 61cfdc34709efc7356b560ff1d902f353bbca5a2 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 18 Aug 2022 13:49:31 +0200 Subject: [PATCH] Moved client setup from core-system repository to roles --- playbook.yml | 12 +++++++----- roles/native-caffeine/meta/main.yml | 2 ++ roles/native-caffeine/tasks/main.yml | 5 +++++ roles/native-gnome/Readme.md | 3 +++ roles/native-gnome/tasks/main.yml | 14 +++++++++++--- roles/native-non-free-drivers/tasks/main.yml | 2 ++ 6 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 roles/native-caffeine/meta/main.yml create mode 100644 roles/native-caffeine/tasks/main.yml create mode 100644 roles/native-gnome/Readme.md create mode 100644 roles/native-non-free-drivers/tasks/main.yml diff --git a/playbook.yml b/playbook.yml index 432c6d6..4fbde18 100644 --- a/playbook.yml +++ b/playbook.yml @@ -5,6 +5,13 @@ - native-pacman-update - native-general - native-administrator + - native-caffeine + - native-non-free-drivers +- name: GNOME setup + hosts: gnome_hosts + become: true + roles: + - native-gnome - name: setup gaming hosts hosts: gaming_hosts become: true @@ -25,11 +32,6 @@ become: true roles: - native-libreoffice -- name: setup gnome-clients - hosts: gnome_clients - become: true - roles: - - native-gnome - name: setup nextcloud-client hosts: nextcloud_client_hosts become: true diff --git a/roles/native-caffeine/meta/main.yml b/roles/native-caffeine/meta/main.yml new file mode 100644 index 0000000..795fd09 --- /dev/null +++ b/roles/native-caffeine/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: +- native-aur-helper \ No newline at end of file diff --git a/roles/native-caffeine/tasks/main.yml b/roles/native-caffeine/tasks/main.yml new file mode 100644 index 0000000..738d421 --- /dev/null +++ b/roles/native-caffeine/tasks/main.yml @@ -0,0 +1,5 @@ +- name: Install caffeine + kewlfft.aur.aur: + use: yay + name: + - caffeine-ng \ No newline at end of file diff --git a/roles/native-gnome/Readme.md b/roles/native-gnome/Readme.md new file mode 100644 index 0000000..f53d1b1 --- /dev/null +++ b/roles/native-gnome/Readme.md @@ -0,0 +1,3 @@ +# native-gnome +## further information +- https://askubuntu.com/questions/1029376/how-do-i-enable-and-disable-gnome-extensions-from-the-command-line \ No newline at end of file diff --git a/roles/native-gnome/tasks/main.yml b/roles/native-gnome/tasks/main.yml index 9eb50a5..778451f 100644 --- a/roles/native-gnome/tasks/main.yml +++ b/roles/native-gnome/tasks/main.yml @@ -1,7 +1,15 @@ -- name: Install docker +- name: Install Gnome Software community.general.pacman: name: - gnome-shell-extensions + - gnome-shell-extension-desktop-icons-ng - gnome-terminal - - intltool # Needed for extension make - state: present + state: present + +- name: GNOME Activate Extensions + ansible.builtin.shell: gsettings set org.gnome.shell disable-user-extensions false + become: false + +- name: GNOME Set favorite apps + ansible.builtin.shell: gsettings set org.gnome.shell favorite-apps "{{favorite_apps}}" + become: false diff --git a/roles/native-non-free-drivers/tasks/main.yml b/roles/native-non-free-drivers/tasks/main.yml new file mode 100644 index 0000000..713b909 --- /dev/null +++ b/roles/native-non-free-drivers/tasks/main.yml @@ -0,0 +1,2 @@ +- name: Install nonfree drivers + ansible.builtin.shell: mhwd -a pci nonfree 0300 \ No newline at end of file