fix go and pipx installs

This commit is contained in:
Matthew Stobbs
2025-02-22 16:24:44 -07:00
parent a73ed77dac
commit b25f6dc207
2 changed files with 7 additions and 12 deletions

View File

@@ -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 }}