Skip to content

Commit

Permalink
ansible(role): set GOPATH on command level
Browse files Browse the repository at this point in the history
  • Loading branch information
gelocraft committed Dec 16, 2024
1 parent 4ad52d3 commit 538ab92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/fzf/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Install fzf with go
ansible.builtin.shell:
cmd: "go install github.com/junegunn/fzf@latest"
cmd: "GOPATH=~/.go go install github.com/junegunn/fzf@latest"
creates: "~/.local/share/go/bin/fzf"
become_user: "{{ username }}"
2 changes: 1 addition & 1 deletion ansible/roles/lazygit/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Install lazygit
ansible.builtin.shell:
cmd: "go install github.com/jesseduffield/lazygit@latest"
cmd: "GOPATH=~/.go go install github.com/jesseduffield/lazygit@latest"
creates: "~/.local/share/go/bin/lazygit"
become_user: "{{ username }}"

0 comments on commit 538ab92

Please sign in to comment.