home · contact · privacy
Add 3D acceleration stuff to ansible script.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 24 Mar 2017 04:00:38 +0000 (05:00 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 24 Mar 2017 04:00:38 +0000 (05:00 +0100)
ansible/config.yml
ansible/run.sh

index 4b388ff6136dc232efc7f90736a4c58304fe04e9..ecfbbff301ec5c32ba946e916dd7c28ea3cedd2d 100644 (file)
     - xserver-xorg-input-evdev  # supports all input devices the kernel knows about
     - xinit  # contains startx
     - libpam-systemd  # needed to start X as non-root
-  - name: ensure basic X tools
+  - name: ensure openGL and 3D accelleration 
     apt: name={{item}} state=present
     with_items:
     - libgl1-mesa-dri  # necessary for OpenGL 3D acceleration to work
+    - bumblebee-nvidia
+    - primus
+  - name: ensure basic X tools
+    apt: name={{item}} state=present
+    with_items:
     - xterm
     - x11-xserver-utils  # includes xrdb which applies .Xresources files
     - redshift 
index 02856c28211e13fe4de0f31aa7aaee8fd21b424c..a4e62e83259fb4f47010e0ce9fc18c4e9dee9c36 100755 (executable)
@@ -1 +1 @@
-ansible-playbook -i 'localhost,' -c local config.yml
+ansible-playbook -vvv -i 'localhost,' -c local config.yml