parent
b9b78abb03
commit
e5b323a1ff
@ -1,21 +1,31 @@
|
||||
---
|
||||
- name: Set up env
|
||||
vars:
|
||||
XDG_DATA_DIRS: /usr/local/share/:/usr/share/
|
||||
TZ: Europe/Stockholm
|
||||
variables:
|
||||
- key: CLUTTER_BACKEND
|
||||
value: wayland
|
||||
- key: QT_QPA_PLATFORM
|
||||
value: "wayland;xcb"
|
||||
- key: QT_QPA_PLATFORMTHEME
|
||||
value: qt5ct
|
||||
- key: SDL_VIDEODRIVER
|
||||
value: "wayland,x11"
|
||||
- key: TZ
|
||||
value: Europe/Stockholm
|
||||
- key: XDG_CURRENT_DESKTOP
|
||||
value: sway
|
||||
- key: XDG_DATA_DIRS
|
||||
value: /usr/local/share/:/usr/share/
|
||||
- key: _JAVA_AWT_WM_NONREPARENTING
|
||||
value: 1
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: false
|
||||
tasks:
|
||||
- name: Set up XDG_DATA_DIRS
|
||||
- name: Set up environment variables
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/environment
|
||||
regex: ^XDG_DATA_DIRS=
|
||||
line: XDG_DATA_DIRS={{ XDG_DATA_DIRS }}
|
||||
- name: Set up TZ
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/environment
|
||||
regex: ^TZ=
|
||||
line: TZ={{ TZ }}
|
||||
regex: ^{{ item.key }}=
|
||||
line: "{{ item.key }}={{ item.value }}"
|
||||
loop: "{{ variables }}"
|
||||
|
Loading…
Reference in new issue