summaryrefslogtreecommitdiffstats
path: root/roles/gpu-switch/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-27 23:45:46 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-27 23:45:46 +0100
commit2165226bf04d177ad5ff2b42f148a4b9aa2f12b0 (patch)
tree25b2dbcbe8ac35694e238f3aa8129e4af0545eb8 /roles/gpu-switch/meta
parent3331d092f1010992c008ca53b690b6fb28fbaa51 (diff)
Add the role to switch gpu
For Mac Machines with iGPU and dedicated GPU, this installs the gpu-switch to allow setting the active GPU on the next boot
Diffstat (limited to 'roles/gpu-switch/meta')
-rw-r--r--roles/gpu-switch/meta/argument_specs.yml10
-rw-r--r--roles/gpu-switch/meta/main.yml12
2 files changed, 22 insertions, 0 deletions
diff --git a/roles/gpu-switch/meta/argument_specs.yml b/roles/gpu-switch/meta/argument_specs.yml
new file mode 100644
index 00000000..46632ea4
--- /dev/null
+++ b/roles/gpu-switch/meta/argument_specs.yml
@@ -0,0 +1,10 @@
+---
+argument_specs:
+ main:
+ short_description: "Install gpu-switch"
+ description: "Install gpu-switch"
+ options:
+ gpu_switch_dedicated:
+ type: "bool"
+ default: false
+ description: "Enable dedicated GPU on machine when true other wise use default iGPU"
diff --git a/roles/gpu-switch/meta/main.yml b/roles/gpu-switch/meta/main.yml
new file mode 100644
index 00000000..3a4515bb
--- /dev/null
+++ b/roles/gpu-switch/meta/main.yml
@@ -0,0 +1,12 @@
+---
+dependencies:
+ - role: "yay"
+galaxy_info:
+ author: "a14m"
+ description: "Install gpu-switch"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"