You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- 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 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 }}
|