Install wsl-open
This commit is contained in:
parent
fc2de30760
commit
65e4779c6b
2 changed files with 20 additions and 0 deletions
19
roles/wsl-open/tasks/main.yaml
Normal file
19
roles/wsl-open/tasks/main.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
- 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"
|
|
@ -19,5 +19,6 @@
|
||||||
- tools
|
- tools
|
||||||
- dev-machine
|
- dev-machine
|
||||||
- pinentry-wsl
|
- pinentry-wsl
|
||||||
|
- wsl-open
|
||||||
- dockerd-wsl
|
- dockerd-wsl
|
||||||
- dircolors-wsl
|
- dircolors-wsl
|
||||||
|
|
Loading…
Reference in a new issue