ansible-machine-setup/roles/wsl-open/tasks/main.yaml
2020-11-13 08:37:35 +01:00

19 lines
494 B
YAML

---
- name: download script
become_user: "{{ account.name }}"
get_url:
url: https://raw.githubusercontent.com/4U6U57/wsl-open/master/wsl-open.sh
dest: "{{ account.home }}/bin"
mode: "0755"
- name: install xdg-open
package:
name: xdg-utils
state: latest
- name: set BROWSER variable
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.zshrc"
regexp: "^export BROWSER="
line: "export BROWSER=wsl-open.sh"