From cf2321a1ce41e421cba4e12b73c09c2a12fe61d0 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 1 Mar 2026 23:48:05 +0100 Subject: Refactor graphics driver roles Now with the gpu_driver, the installing of the correct driver is delegated to this role, which orchestrate the installing of one or more drivers. This refactoring of the role/testing, means that the roles don't run on testing (intentionally), if a driver needs to be tested it will be added but for now it's not really all that beneficial to keep this 30+ minutes testing roles running just to test the packages existence. It also simplifies the roles, and added as a dependency for steam which is the main reason why these are needed to be installed (also better hyprland animations, but that's not as crucial as steam failing without the drivers). --- roles/pciutils/meta/argument_specs.yml | 6 ++++++ roles/pciutils/meta/main.yml | 17 +++++++++++++++++ roles/pciutils/tasks/main.yml | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 roles/pciutils/meta/argument_specs.yml create mode 100644 roles/pciutils/meta/main.yml create mode 100644 roles/pciutils/tasks/main.yml (limited to 'roles/pciutils') diff --git a/roles/pciutils/meta/argument_specs.yml b/roles/pciutils/meta/argument_specs.yml new file mode 100644 index 00000000..a9845ff3 --- /dev/null +++ b/roles/pciutils/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install pciutils on Linux distribution" + description: "Install pciutils on Linux distribution" + options: {} diff --git a/roles/pciutils/meta/main.yml b/roles/pciutils/meta/main.yml new file mode 100644 index 00000000..b3a2fe28 --- /dev/null +++ b/roles/pciutils/meta/main.yml @@ -0,0 +1,17 @@ +--- +dependencies: [] +galaxy_info: + author: "a14m" + description: "Install pciutils" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/pciutils/tasks/main.yml b/roles/pciutils/tasks/main.yml new file mode 100644 index 00000000..b9d6d62f --- /dev/null +++ b/roles/pciutils/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: "Ensure pciutils is installed" + become: true + ansible.builtin.package: + name: "pciutils" + state: "present" -- cgit v1.2.3