main
Micke Nordin 1 year ago
parent b9b78abb03
commit e5b323a1ff
No known key found for this signature in database
GPG Key ID: F53C4CC83EDAB3BE

@ -1,21 +1,31 @@
--- ---
- name: Set up env - name: Set up env
vars: vars:
XDG_DATA_DIRS: /usr/local/share/:/usr/share/ variables:
TZ: Europe/Stockholm - 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 hosts: localhost
connection: local connection: local
become: false become: false
tasks: tasks:
- name: Set up XDG_DATA_DIRS - name: Set up environment variables
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/environment path: /etc/environment
regex: ^XDG_DATA_DIRS= regex: ^{{ item.key }}=
line: XDG_DATA_DIRS={{ XDG_DATA_DIRS }} line: "{{ item.key }}={{ item.value }}"
- name: Set up TZ loop: "{{ variables }}"
become: true
ansible.builtin.lineinfile:
path: /etc/environment
regex: ^TZ=
line: TZ={{ TZ }}

Loading…
Cancel
Save