Fix timezone

main
Micke Nordin 1 year ago
parent b1a20baade
commit 95c1f6d7fb

@ -2,13 +2,20 @@
- name: Set up env - name: Set up env
vars: vars:
XDG_DATA_DIRS: /usr/local/share/:/usr/share/ XDG_DATA_DIRS: /usr/local/share/:/usr/share/
TZ: Europe/Stockholm
hosts: localhost hosts: localhost
connection: local connection: local
become: false become: false
tasks: tasks:
- name: Set up /etc/environment - name: Set up XDG_DATA_DIRS
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/environment path: /etc/environment
regex: ^XDG_DATA_DIRS= regex: ^XDG_DATA_DIRS=
line: XDG_DATA_DIRS={{ 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