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.

15 lines
346 B

---
- name: Set up env
vars:
XDG_DATA_DIRS: /usr/local/share/:/usr/share/
hosts: localhost
connection: local
become: false
tasks:
- name: Set up /etc/environment
become: true
ansible.builtin.lineinfile:
path: /etc/environment
regex: '^XDG_DATA_DIRS='
line: XDG_DATA_DIRS={{ XDG_DATA_DIRS }}