2021-01-29 00:08:39 +00:00
|
|
|
---
|
|
|
|
- name: Queries package manager for graphical instalation
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- autorandr
|
|
|
|
- font-bh-ttf
|
|
|
|
- gsfonts
|
|
|
|
- light
|
|
|
|
- noto-fonts-emoji
|
|
|
|
- physlock
|
|
|
|
- sdl_ttf
|
|
|
|
- ttf-bitstream-vera
|
|
|
|
- ttf-dejavu
|
|
|
|
- ttf-liberation
|
|
|
|
- xorg-fonts-type1
|
|
|
|
- xorg-xinit
|
2021-03-20 22:07:31 +00:00
|
|
|
- xorg-xinput
|
2021-01-29 00:08:39 +00:00
|
|
|
- xorg-server
|
|
|
|
- xss-lock
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
|
|
|
|
- name: Queries package manager for graphical instalation specific to abyme installation
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- nvidia
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
when: laptop.gpu
|
|
|
|
|
|
|
|
- name: Queries package manager for graphical instalation specific to abyme installation
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- numlockx
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
when: laptop.numpad
|
|
|
|
|
|
|
|
- name: Copy user configuration files
|
|
|
|
template:
|
|
|
|
src: 'xinitrc.j2'
|
|
|
|
dest: '.xinitrc'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0644
|
|
|
|
become_user: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Copy touchpad configuration
|
|
|
|
template:
|
|
|
|
src: '30-touchpad.conf.j2'
|
|
|
|
dest: '/etc/X11/xorg.conf.d/30-touchpad.conf'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2021-03-17 23:25:44 +00:00
|
|
|
- name: Change backlight property # doing some shifty things
|
2021-01-29 00:08:39 +00:00
|
|
|
file:
|
|
|
|
path: '/sys/class/backlight/intel_backlight/brightness'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: root
|
2021-01-29 00:08:39 +00:00
|
|
|
group: video
|
|
|
|
mode: '0664'
|
|
|
|
|
|
|
|
- name: Gives user the good group
|
|
|
|
user:
|
2021-03-17 23:25:44 +00:00
|
|
|
name: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
groups: video
|
|
|
|
append: yes
|
|
|
|
|
|
|
|
- name: Create autorandr configuration folder
|
|
|
|
file:
|
|
|
|
path: '~/.config/autorandr'
|
|
|
|
state: directory
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0755
|
|
|
|
become_user: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Install autorandr postswitch configuration file
|
|
|
|
template:
|
|
|
|
src: 'postswitch.j2'
|
|
|
|
dest: '~/.config/autorandr/postswitch'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0755
|
|
|
|
become_user: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Enable autorandr service
|
|
|
|
service:
|
|
|
|
name: autorandr
|
|
|
|
enabled: yes
|