ansible-machine-setup/roles/wsl-open/tasks/main.yaml

20 lines
494 B
YAML
Raw Normal View History

2020-11-13 07:36:46 +00:00
---
- 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"