fixing issues

This commit is contained in:
Matthew Stobbs
2025-02-22 16:09:47 -07:00
parent d1e8957f94
commit a73ed77dac
17 changed files with 63 additions and 68 deletions

View File

@@ -1,12 +1,16 @@
---
- debug:
var: path.go
- debug:
var: path.bin
- name: Install go packages
become: "{{ ext_become }}"
environment:
GOBIN: "{{ path.bin }}"
GOBIN: "{% if ansible_distribution == 'MacOSX' %}/usr/local/bin{% else %}{{ path.bin }}{% endif %}"
PATH: "{{ path.go }}/bin:$PATH"
ansible.builtin.command:
creates: "{{ path.bin }}/{{ pkg.bin }}"
cmd:
- go
- install
- "{{ pkg.pkg }}"
- "{{ pkg }}"