diff --git a/playbooks/group_surface3.yml b/playbooks/group_surface3.yml new file mode 100644 index 0000000..7a88fda --- /dev/null +++ b/playbooks/group_surface3.yml @@ -0,0 +1,42 @@ +--- + +- name: Configure Surface 3 device + hosts: surface3 + tasks: + - name: Install packages for hardware + apt: + state: present + name: + - intel-media-va-driver-non-free + - intel-microcode + - firmware-linux + - firmware-linux-free + - firmware-linux-nonfree + - xserver-xorg-video-intel + - name: Add apt key for special kernel + apt_key: + state: present + id: 87DEFA4AB94A99A4C8C3112556C464BAAC421453 + url: https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc + - name: Add apt repository for special kernel + apt_repository: + state: present + filename: linux-surface + repo: "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" + update_cache: yes + - name: Install special kernel + apt: + state: present + name: + - libwacom-surface + - linux-headers-surface + - linux-image-surface + - linux-surface-secureboot-mok # Password: surface + - name: Disable evbug module debug logging # https://ralph.blog.imixs.com/2013/10/02/evbug-auf-die-blacklist-setzen/ + copy: + content: | + blacklist evbug + dest: "{{ global_modprode_configuration_directory }}/disable-evbug.conf" + owner: root + group: root + mode: u=rw,g=r,o= diff --git a/site.yml b/site.yml index 5209226..c39bec1 100644 --- a/site.yml +++ b/site.yml @@ -27,6 +27,8 @@ # Group specific configurations - name: Include configuration for group bwcloud import_playbook: playbooks/group_bwcloud.yml +- name: Include configuration for group surface3 + import_playbook: playbooks/group_surface3.yml - name: Include configuration for group os_raspbian import_playbook: playbooks/group_os_raspbian.yml