Fix timezone

main
Micke Nordin 1 year ago
parent b1a20baade
commit 95c1f6d7fb

@ -2,13 +2,20 @@
- name: Set up env
vars:
XDG_DATA_DIRS: /usr/local/share/:/usr/share/
TZ: Europe/Stockholm
hosts: localhost
connection: local
become: false
tasks:
- name: Set up /etc/environment
- name: Set up XDG_DATA_DIRS
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 }}

Loading…
Cancel
Save