dotfiles/unprocessed/config/automatrop/roles/system/tasks/main.yml

28 lines
764 B
YAML
Raw Normal View History

# Xorg configuration
- name: Configure Xorg joystick behaviour
2023-11-02 19:51:54 +01:00
ansible.builtin.copy:
src: xorg/joystick.conf
dest: "{{ item }}/50-joystick.conf"
2023-11-02 19:51:54 +01:00
become: true
2021-06-18 21:53:42 +02:00
when: display_server == 'x11'
loop: "{{ xorg_common_config_dirs }}"
2021-06-21 22:01:48 +02:00
- name: List modules we're using
2023-11-02 19:51:54 +01:00
ansible.builtin.slurp:
2021-06-21 22:01:48 +02:00
src: /proc/modules
2023-11-02 19:51:54 +01:00
register: modules
2021-06-21 22:01:48 +02:00
when: display_server
# Not sure the module will be loaded in early setup stages though
- name: Make panfrost use OpenGL 3.3
2023-11-02 19:51:54 +01:00
ansible.builtin.lineinfile:
2021-06-21 22:01:48 +02:00
path: /etc/environment
2023-11-02 19:51:54 +01:00
line: PAN_MESA_DEBUG="gl3"
regexp: ^#? ?PAN_MESA_DEBUG=
become: true
2021-06-21 22:01:48 +02:00
when: display_server and using_panfrost
vars:
using_panfrost: "{{ 'panfrost' in (modules.content | b64decode) }}"
notify: panfrost config changed