fix go and pipx installs
This commit is contained in:
14
tasks/go.yml
14
tasks/go.yml
@@ -1,16 +1,8 @@
|
||||
---
|
||||
- debug:
|
||||
var: path.go
|
||||
- debug:
|
||||
var: path.bin
|
||||
|
||||
- name: Install go packages
|
||||
- name: Install go package {{ pkg }}
|
||||
become: "{{ ext_become }}"
|
||||
environment:
|
||||
GOBIN: "{% if ansible_distribution == 'MacOSX' %}/usr/local/bin{% else %}{{ path.bin }}{% endif %}"
|
||||
GOBIN: "{{ path.bin }}"
|
||||
PATH: "{{ path.go }}/bin:$PATH"
|
||||
ansible.builtin.command:
|
||||
cmd:
|
||||
- go
|
||||
- install
|
||||
- "{{ pkg }}"
|
||||
cmd: go install {{ pkg }}
|
||||
|
||||
Reference in New Issue
Block a user